From e8fcc4da695abe15e8da371c1127f548aa8889ad Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 4 Apr 2021 09:50:41 -0500 Subject: [PATCH] Handle ChunkedEncodingError during streaming --- tweepy/streaming.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 917408f..fbad440 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -119,6 +119,7 @@ class Stream: if http_error_wait > http_error_wait_max: http_error_wait = http_error_wait_max except (requests.ConnectionError, requests.Timeout, + requests.exceptions.ChunkedEncodingError, ssl.SSLError, urllib3.exceptions.ReadTimeoutError, urllib3.exceptions.ProtocolError) as exc: # This is still necessary, as a SSLError can actually be -- 2.25.1