transit.py: improve error
This commit is contained in:
parent
e11c7496a9
commit
b1f994e939
|
@ -814,9 +814,8 @@ class Common:
|
|||
contenders.append(d)
|
||||
|
||||
if not contenders:
|
||||
raise RuntimeError("No contenders for connection")
|
||||
# else:
|
||||
# print("contend", contenders)
|
||||
raise TransitError("No contenders for connection")
|
||||
|
||||
winner = there_can_be_only_one(contenders)
|
||||
return self._not_forever(2*TIMEOUT, winner)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user