X-Git-Url: https://projects.mako.cc/source/twitter-api-cdsw-solutions/blobdiff_plain/043b63c67557591f1e85b53d17fc8a1a797f48ca..1e2d406ccc7bfaa9c73ab809367ce5ae2ab6fc79:/tweepy/streaming.py?ds=sidebyside 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