aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordirkf <fieldhouse@gmx.net>2024-06-19 19:04:47 +0100
committerdirkf <fieldhouse@gmx.net>2024-06-20 20:03:49 +0100
commit2eac0fa3799b3d027148341186a52fb5a6288473 (patch)
tree38ab918a7192e58d83b4a7619e58d2a071df53bd
parent0153b387e57e0bb8e580f1869f85596d2767fb0d (diff)
[utils] Save `orig_msg` in `ExtractorError`
-rw-r--r--youtube_dl/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index cd4303566..113c913df 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -2406,7 +2406,7 @@ class ExtractorError(YoutubeDLError):
""" tb, if given, is the original traceback (so that it can be printed out).
If expected is set, this is a normal error message and most likely not a bug in youtube-dl.
"""
-
+ self.orig_msg = msg
if sys.exc_info()[0] in (compat_urllib_error.URLError, socket.timeout, UnavailableVideoError):
expected = True
if video_id is not None: