transit.py: improve error

This commit is contained in:
Brian Warner 2016-06-22 13:10:46 -07:00
parent e11c7496a9
commit b1f994e939

View File

@ -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)