blocking/transit: use descriptive error message
This commit is contained in:
parent
1ff0792b32
commit
ed1eb06ae8
|
@ -336,7 +336,7 @@ class Common:
|
||||||
self.listener.shutdown() # TODO: waits up to 0.5s. push to thread
|
self.listener.shutdown() # TODO: waits up to 0.5s. push to thread
|
||||||
if self.winning_skt:
|
if self.winning_skt:
|
||||||
return self.winning_skt
|
return self.winning_skt
|
||||||
raise TransitError
|
raise TransitError("timeout")
|
||||||
|
|
||||||
def describe(self):
|
def describe(self):
|
||||||
if not self.winning_skt_description:
|
if not self.winning_skt_description:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user