Skip to content

NoneType has no attribute strip #46

@dwyerk

Description

@dwyerk

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions