Skip to content

Commit e8fcc4d

Browse files
committed
Handle ChunkedEncodingError during streaming
1 parent 31db116 commit e8fcc4d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tweepy/streaming.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ def _connect(self, method, endpoint, params=None, headers=None, body=None):
119119
if http_error_wait > http_error_wait_max:
120120
http_error_wait = http_error_wait_max
121121
except (requests.ConnectionError, requests.Timeout,
122+
requests.exceptions.ChunkedEncodingError,
122123
ssl.SSLError, urllib3.exceptions.ReadTimeoutError,
123124
urllib3.exceptions.ProtocolError) as exc:
124125
# This is still necessary, as a SSLError can actually be

0 commit comments

Comments
 (0)