Revert "Treat IncompleteRead as a disconnect or timeout, and reconnect."
authorAaron Hill <aa1ronham@gmail.com>
Thu, 30 Oct 2014 18:49:13 +0000 (14:49 -0400)
committerAaron Hill <aa1ronham@gmail.com>
Thu, 30 Oct 2014 18:49:13 +0000 (14:49 -0400)
This reverts commit c841a09a0a05b27979a5768274735d6fde184ea2.

tweepy/streaming.py

index c6d9fa721205b9e2afb632f9f256b29c0af6d69a..736cffafb968b7f40c8653d2eb1986ef849d1ae0 100644 (file)
@@ -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