Fix bug where streaming throws an exception after long use
authorJosh Roesslein <jroesslein@gmail.com>
Thu, 12 Apr 2018 02:39:23 +0000 (19:39 -0700)
committerJosh Roesslein <jroesslein@gmail.com>
Thu, 12 Apr 2018 02:39:23 +0000 (19:39 -0700)
commit32fa592d4ae535baf6e1cf17658d207fb656b16b
treef0a0fcee06a8c70bdcbcb0c8e45abab65a10c357
parent25e445de8a85bd859f7bdc762ab9081529a25f57
Fix bug where streaming throws an exception after long use

When we go to read the next line this method sometimes is return None (dead socket?).
Guard against this with a check first before trying to strip the result.

Fixes #1026
tweepy/streaming.py