1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-30 22:25:19 +00:00

[cleanup] Misc

This commit is contained in:
pukkandan
2021-09-05 11:16:23 +05:30
parent e04a1ff92e
commit 526d74ec5a
7 changed files with 10 additions and 12 deletions

View File

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