aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl
diff options
context:
space:
mode:
authordirkf <[email protected]>2024-06-19 19:04:47 +0100
committerdirkf <[email protected]>2024-06-20 20:03:49 +0100
commit2eac0fa3799b3d027148341186a52fb5a6288473 (patch)
tree38ab918a7192e58d83b4a7619e58d2a071df53bd /youtube_dl
parent0153b387e57e0bb8e580f1869f85596d2767fb0d (diff)
downloadyoutube-dl-2eac0fa3799b3d027148341186a52fb5a6288473.tar.gz
youtube-dl-2eac0fa3799b3d027148341186a52fb5a6288473.zip
[utils] Save `orig_msg` in `ExtractorError`
Diffstat (limited to 'youtube_dl')
-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: