Permalink
Browse files

Runtime exception in listener no longer fails silently (Fixed issue #14

…).
  • Loading branch information...
1 parent c96b8bd commit 4c03a2b504eda61dad792f042934d6569607b96e @waynemoore waynemoore committed with joshthecoder May 16, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 tweepy/streaming.py
View
@@ -89,6 +89,7 @@ def _run(self):
# enter loop
error_counter = 0
conn = None
+ exception = None
while self.running:
if self.retry_count and error_counter > self.retry_count:
# quit if error count greater than retry count
@@ -114,7 +115,7 @@ def _run(self):
break
conn.close()
sleep(self.snooze_time)
- except Exception:
+ except Exception, exception:
# any other exception is fatal, so kill loop
break
@@ -123,6 +124,9 @@ def _run(self):
if conn:
conn.close()
+ if exception:
+ raise exception
+
def _read_loop(self, resp):
data = ''
while self.running:

0 comments on commit 4c03a2b

Please sign in to comment.