From f5d2c1f1eee9c6898e016c6f47fbdd6e51486d7e Mon Sep 17 00:00:00 2001 From: Evamvid Sharma Date: Tue, 9 Jun 2015 17:58:50 -0400 Subject: [PATCH] Changed raise to raise exception 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 6ce3e5c..6f591cf 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -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: -- 2.25.1