X-Git-Url: https://projects.mako.cc/source/twitter-api-cdsw/blobdiff_plain/c09c5f5d95d501c31271233a3c34b88daee6a997..c63b39e25aac93634380365407e6b909d19dcd4f:/tweepy/streaming.py diff --git a/tweepy/streaming.py b/tweepy/streaming.py index faf42ea..9b246bd 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -268,10 +268,10 @@ class Stream(object): sleep(self.snooze_time) self.snooze_time = min(self.snooze_time + self.snooze_time_step, self.snooze_time_cap) - # except Exception as exc: - # exception = exc - # # any other exception is fatal, so kill loop - # break + except Exception as exc: + exception = exc + # any other exception is fatal, so kill loop + break # cleanup self.running = False