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
bb3d2075
Commit
bb3d2075
authored
Mar 29, 2017
by
Alexander Koumis
Browse files
Prevent .strip() from being called on None
parent
51e409d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/streaming.py
View file @
bb3d2075
...
...
@@ -313,10 +313,10 @@ class Stream(object):
while
self
.
running
and
not
resp
.
raw
.
closed
:
length
=
0
while
not
resp
.
raw
.
closed
:
line
=
buf
.
read_line
()
.
strip
()
line
=
buf
.
read_line
()
if
not
line
:
self
.
listener
.
keep_alive
()
# keep-alive new lines are expected
elif
line
.
isdigit
():
elif
line
.
strip
().
isdigit
():
length
=
int
(
line
)
break
else
:
...
...
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