From 34af675c8e24b5176dae276342126fb52816ae6e Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Thu, 30 Oct 2014 14:49:13 -0400 Subject: [PATCH] Revert "Treat IncompleteRead as a disconnect or timeout, and reconnect." This reverts commit c841a09a0a05b27979a5768274735d6fde184ea2. --- tweepy/streaming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index c6d9fa7..736cffa 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -230,7 +230,7 @@ class Stream(object): self.snooze_time = self.snooze_time_step self.listener.on_connect() self._read_loop(resp) - except (Timeout, ssl.SSLError, requests.compat.IncompleteRead) as exc: + except (Timeout, ssl.SSLError) as exc: # This is still necessary, as a SSLError can actually be # thrown when using Requests # If it's not time out treat it like any other exception -- 2.25.1