From ad85ce17171c196de27521482322983579ace5c1 Mon Sep 17 00:00:00 2001 From: tehspaceg Date: Thu, 12 Mar 2015 11:14:48 -0700 Subject: [PATCH] Fixes issue #570 This resolves an issue found here: https://github.com/tweepy/tweepy/issues/570 If an exception is thrown in the listener, the exception is not sent out currently and results in an error. --- tweepy/streaming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 9b246bd..5840437 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