Update twitter.py

This commit is contained in:
Sergey M 2017-09-23 06:36:49 +07:00 committed by GitHub
parent 3d27844e99
commit a5b7985747

View File

@ -396,7 +396,7 @@ class TwitterIE(InfoExtractor):
twid = mobj.group('id') twid = mobj.group('id')
webpage, urlh = self._download_webpage_handle( webpage, urlh = self._download_webpage_handle(
self._TEMPLATE_STATUSES_URL % (twid), twid) self._TEMPLATE_STATUSES_URL % twid, twid)
if 'twitter.com/account/suspended' in urlh.geturl(): if 'twitter.com/account/suspended' in urlh.geturl():
raise ExtractorError('Account suspended by Twitter.', expected=True) raise ExtractorError('Account suspended by Twitter.', expected=True)