Skip to content

Commit 34af675

Browse files
committed
Revert "Treat IncompleteRead as a disconnect or timeout, and reconnect."
This reverts commit c841a09.
1 parent 64494d2 commit 34af675

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tweepy/streaming.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def _run(self):
230230
self.snooze_time = self.snooze_time_step
231231
self.listener.on_connect()
232232
self._read_loop(resp)
233-
except (Timeout, ssl.SSLError, requests.compat.IncompleteRead) as exc:
233+
except (Timeout, ssl.SSLError) as exc:
234234
# This is still necessary, as a SSLError can actually be
235235
# thrown when using Requests
236236
# If it's not time out treat it like any other exception

0 commit comments

Comments
 (0)