From: Harmon Date: Sun, 24 Jan 2021 13:55:12 +0000 (-0600) Subject: Disregard return value from Stream.on_request_error X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7fc85f63c1a322439edf667866c94a29fd7b2199;p=tweepy.git Disregard return value from Stream.on_request_error --- diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 14af2ce..bbc65ab 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -74,7 +74,8 @@ class Stream: verify=self.verify, proxies=self.proxies ) as resp: if resp.status_code != 200: - if self.on_request_error(resp.status_code) is False: + self.on_request_error(resp.status_code) + if not self.running: break error_count += 1 if resp.status_code == 420: