Changed raise to raise exception
authorEvamvid Sharma <evamvid@gmail.com>
Tue, 9 Jun 2015 21:58:50 +0000 (17:58 -0400)
committerEvamvid Sharma <evamvid@gmail.com>
Tue, 9 Jun 2015 21:58:50 +0000 (17:58 -0400)
Line 286.

This prevents the "RuntimeError: No active exception to reraise" error.

http://stackoverflow.com/a/28871066

Didn't look like anyone had changed the line.

tweepy/streaming.py

index 6ce3e5c827b729a81eeed559c02db1810d685768..6f591cf54a2df66d25f59dccd953381ca9ca57d4 100644 (file)
@@ -283,7 +283,7 @@ class Stream(object):
         if exception:
             # call a handler first so that the exception can be logged.
             self.listener.on_exception(exception)
-            raise
+            raise exception
 
     def _data(self, data):
         if self.listener.on_data(data) is False: