From b1f994e939c03b3a1fa626e9391503a4b71bcdec Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Wed, 22 Jun 2016 13:10:46 -0700 Subject: [PATCH] transit.py: improve error --- src/wormhole/transit.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/wormhole/transit.py b/src/wormhole/transit.py index 23a116c..308e92f 100644 --- a/src/wormhole/transit.py +++ b/src/wormhole/transit.py @@ -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)