From e348c36f435470985026ae7b93de115db1261041 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 24 Jan 2021 07:57:38 -0600 Subject: [PATCH] Disregard return value from Stream.on_connection_error --- tweepy/streaming.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) -- 2.25.1