Do not show bug report for errors that are to be expected (Closes #973)

This commit is contained in:
Philipp Hagemeister 2013-07-02 08:40:21 +02:00
parent 8dba13f7e8
commit 9a82b2389f
2 changed files with 8 additions and 4 deletions

View file

@ -441,7 +441,7 @@ class YoutubeIE(InfoExtractor):
break
if 'token' not in video_info:
if 'reason' in video_info:
raise ExtractorError(u'YouTube said: %s' % video_info['reason'][0])
raise ExtractorError(u'YouTube said: %s' % video_info['reason'][0], expected=True)
else:
raise ExtractorError(u'"token" parameter not in video info for unknown reason')