From cb5ad8ced12b36ed4711e1f995558c34d707b8e4 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Wed, 11 Nov 2015 18:01:22 -0800 Subject: [PATCH] Use exception for Timeout, not return value --- src/wormhole/blocking/transcribe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wormhole/blocking/transcribe.py b/src/wormhole/blocking/transcribe.py index 52ebc49..f028ad7 100644 --- a/src/wormhole/blocking/transcribe.py +++ b/src/wormhole/blocking/transcribe.py @@ -86,7 +86,7 @@ class Channel: while body is None: remaining = self._started + self._timeout - time.time() if remaining < 0: - return Timeout + raise Timeout queryargs = urlencode([("appid", self._appid), ("channelid", self._channelid)]) f = EventSourceFollower(self._relay_url+"get?%s" % queryargs,