Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
c841a09a
Commit
c841a09a
authored
Oct 21, 2014
by
Timo Ewalds
Browse files
Treat IncompleteRead as a disconnect or timeout, and reconnect.
parent
b64527ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/streaming.py
View file @
c841a09a
...
...
@@ -182,7 +182,7 @@ class Stream(object):
self
.
snooze_time
=
self
.
snooze_time_step
self
.
listener
.
on_connect
()
self
.
_read_loop
(
resp
)
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment