blocking/transit: use descriptive error message

This commit is contained in:
Brian Warner 2016-02-27 14:48:12 -08:00
parent 1ff0792b32
commit ed1eb06ae8

View File

@ -336,7 +336,7 @@ class Common:
self.listener.shutdown() # TODO: waits up to 0.5s. push to thread
if self.winning_skt:
return self.winning_skt
raise TransitError
raise TransitError("timeout")
def describe(self):
if not self.winning_skt_description: