1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-03 00:05:36 +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( info = self._parse_jwplayer_data(
jwplayer_data, video_id, require_title=False, base_url=url) jwplayer_data, video_id, require_title=False, base_url=url)
return merge_dicts(info, info_dict) return merge_dicts(info, info_dict)
except ExtractorError as e: except ExtractorError:
self.to_screen(e.msg_without_bug_report) # If there is an error, try a different extractor
self.to_screen("Trying different extractor") pass
# Video.js embed # Video.js embed
mobj = re.search( mobj = re.search(

View File

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