1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-23 11:15:35 +08:00

Remove superfluous error messages

This commit is contained in:
Mohammed Yaseen Mowzer 2018-07-02 21:48:42 +02:00
parent ecf6f49f7e
commit ceca62c566
2 changed files with 3 additions and 4 deletions

View File

@ -3137,9 +3137,9 @@ class GenericIE(InfoExtractor):
info = self._parse_jwplayer_data(
jwplayer_data, video_id, require_title=False, base_url=url)
return merge_dicts(info, info_dict)
except ExtractorError as e:
self.to_screen(e.msg_without_bug_report)
self.to_screen("Trying different extractor")
except ExtractorError:
# If there is an error, try a different extractor
pass
# Video.js embed
mobj = re.search(

View File

@ -748,7 +748,6 @@ class ExtractorError(YoutubeDLError):
msg = video_id + ': ' + msg
if cause:
msg += ' (caused by %r)' % cause
self.msg_without_bug_report = msg
if not expected:
msg += bug_reports_message()
super(ExtractorError, self).__init__(msg)