X-Git-Url: https://projects.mako.cc/source/twitter-api-cdsw-solutions/blobdiff_plain/043b63c67557591f1e85b53d17fc8a1a797f48ca..1b5bb6edc34a0c0f3b4e3b97a7df8aa709ba9c9e:/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