Skip to content

Commit

Permalink
Handle ChunkedEncodingError during streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Apr 4, 2021
1 parent 31db116 commit e8fcc4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tweepy/streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def _connect(self, method, endpoint, params=None, headers=None, body=None):
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
Expand Down

0 comments on commit e8fcc4d

Please sign in to comment.