Do not show bug report for errors that are to be expected (Closes #973)
[youtube-dl] / youtube_dl / extractor / youtube.py
index b526e0c5375737e1d653116185d02415a6af6284..14a8bd6ea9ead38b15ae7fe41366248e6507882b 100644 (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')