voloko / twitter-stream

Twitter realtime API client
MIT License
233 stars 81 forks source link

NoneType has no attribute strip #46

Open dwyerk opened 9 years ago

dwyerk commented 9 years ago

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'