aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/utils.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-03-04 19:37:43 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-03-04 19:37:43 +0530
commit7265a2190c46b7312669d613898055c2b080d26e (patch)
tree8fc15714faab946b6c3ef71ef5afd24b073c009e /yt_dlp/utils.py
parent3a4bb9f75134a8b9055612e50464f6e42f7386c8 (diff)
downloadhypervideo-pre-7265a2190c46b7312669d613898055c2b080d26e.tar.lz
hypervideo-pre-7265a2190c46b7312669d613898055c2b080d26e.tar.xz
hypervideo-pre-7265a2190c46b7312669d613898055c2b080d26e.zip
Fix doubling of `video_id` in `ExtractorError`
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r--yt_dlp/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py
index 5eb049ab7..4134acfdc 100644
--- a/yt_dlp/utils.py
+++ b/yt_dlp/utils.py
@@ -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())))