Commit c841a09a authored by Timo Ewalds's avatar Timo Ewalds
Browse files

Treat IncompleteRead as a disconnect or timeout, and reconnect.

parent b64527ac
......@@ -182,7 +182,7 @@ class Stream(object):
self.snooze_time = self.snooze_time_step
except (Timeout, ssl.SSLError) as exc:
except (Timeout, ssl.SSLError, requests.compat.IncompleteRead) 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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment