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