Fix doubling of video_id in ExtractorError

This commit is contained in:
pukkandan
2022-03-04 19:37:43 +05:30
parent 3a4bb9f751
commit 7265a2190c
2 changed files with 4 additions and 3 deletions

View File

@@ -1060,7 +1060,7 @@ class ExtractorError(YoutubeDLError):
if sys.exc_info()[0] in network_exceptions:
expected = True
self.msg = str(msg)
self.orig_msg = str(msg)
self.traceback = tb
self.expected = expected
self.cause = cause
@@ -1071,7 +1071,7 @@ class ExtractorError(YoutubeDLError):
super(ExtractorError, self).__init__(''.join((
format_field(ie, template='[%s] '),
format_field(video_id, template='%s: '),
self.msg,
msg,
format_field(cause, template=' (caused by %r)'),
'' if expected else bug_reports_message())))