From: Harmon Date: Sun, 24 Jan 2021 13:57:38 +0000 (-0600) Subject: Disregard return value from Stream.on_connection_error X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e348c36f435470985026ae7b93de115db1261041;p=tweepy.git Disregard return value from Stream.on_connection_error --- diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 405ebf2..ae6fb30 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -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)