Do not show bug report for errors that are to be expected (Closes #973)
This commit is contained in:
parent
8dba13f7e8
commit
9a82b2389f
2 changed files with 8 additions and 4 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue