Disregard return value from Stream.on_connection_error
authorHarmon <Harmon758@gmail.com>
Sun, 24 Jan 2021 13:57:38 +0000 (07:57 -0600)
committerHarmon <Harmon758@gmail.com>
Sun, 24 Jan 2021 13:57:38 +0000 (07:57 -0600)
tweepy/streaming.py

index 405ebf2a0b2c69418246358e83b833eef7224ecf..ae6fb30cfe11af35a94a0c62e7eb29c6c040aea3 100644 (file)
@@ -114,8 +114,7 @@ class Stream:
                     if isinstance(exc, ssl.SSLError):
                         if not (exc.args and 'timed out' in str(exc.args[0])):
                             raise
-                    if self.on_connection_error() is False:
-                        break
+                    self.on_connection_error()
                     if self.running is False:
                         break
                     sleep(network_error_wait)