From 7fc85f63c1a322439edf667866c94a29fd7b2199 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 24 Jan 2021 07:55:12 -0600 Subject: [PATCH] Disregard return value from Stream.on_request_error --- tweepy/streaming.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.25.1