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
4c03a2b5
Commit
4c03a2b5
authored
May 16, 2010
by
Wayne Moore
Committed by
Joshua Roesslein
Jun 16, 2010
Browse files
Runtime exception in listener no longer fails silently (Fixed issue #14).
parent
c96b8bd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/streaming.py
View file @
4c03a2b5
...
...
@@ -89,6 +89,7 @@ class Stream(object):
# enter loop
error_counter
=
0
conn
=
None
exception
=
None
while
self
.
running
:
if
self
.
retry_count
and
error_counter
>
self
.
retry_count
:
# quit if error count greater than retry count
...
...
@@ -114,7 +115,7 @@ class Stream(object):
break
conn
.
close
()
sleep
(
self
.
snooze_time
)
except
Exception
:
except
Exception
,
exception
:
# any other exception is fatal, so kill loop
break
...
...
@@ -123,6 +124,9 @@ class Stream(object):
if
conn
:
conn
.
close
()
if
exception
:
raise
exception
def
_read_loop
(
self
,
resp
):
data
=
''
while
self
.
running
:
...
...
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