twitter-stream icon indicating copy to clipboard operation
twitter-stream copied to clipboard

NoneType has no attribute strip

Open dwyerk opened this issue 10 years ago • 0 comments

Not sure what happened here, maybe a bad read? In any case, read_line() returned a None.

2015-04-30 17:16:24,350 Unexpected exception.
Traceback (most recent call last):
  File "twitter-streamer/streamer/streamer.py", line 118, in process_tweets
    streamer.filter(**kwargs)
  File "/home/kevin/.virtualenvs/streamer/local/lib/python2.7/site-packages/tweepy/streaming.py", line 428, in filter
    self._start(async)
  File "/home/kevin/.virtualenvs/streamer/local/lib/python2.7/site-packages/tweepy/streaming.py", line 346, in _start
    self._run()
  File "/home/kevin/.virtualenvs/streamer/local/lib/python2.7/site-packages/tweepy/streaming.py", line 255, in _run
    self._read_loop(resp)
  File "/home/kevin/.virtualenvs/streamer/local/lib/python2.7/site-packages/tweepy/streaming.py", line 298, in _read_loop
    line = buf.read_line().strip()
AttributeError: 'NoneType' object has no attribute 'strip'

dwyerk avatar May 01 '15 02:05 dwyerk