From: Harmon Date: Sun, 4 Apr 2021 14:50:41 +0000 (-0500) Subject: Handle ChunkedEncodingError during streaming X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e8fcc4da695abe15e8da371c1127f548aa8889ad;p=tweepy.git Handle ChunkedEncodingError during streaming --- 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