Handle ChunkedEncodingError during streaming
authorHarmon <Harmon758@gmail.com>
Sun, 4 Apr 2021 14:50:41 +0000 (09:50 -0500)
committerHarmon <Harmon758@gmail.com>
Sun, 4 Apr 2021 14:50:41 +0000 (09:50 -0500)
tweepy/streaming.py

index 917408f5dcc601c2f7f80ab64dcd62981a771aff..fbad440e91a1a26a028daa9180ccd72d4c039e28 100644 (file)
@@ -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