projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0153b38
)
[utils] Save `orig_msg` in `ExtractorError`
author
dirkf
<fieldhouse@gmx.net>
Wed, 19 Jun 2024 18:04:47 +0000
(19:04 +0100)
committer
dirkf
<fieldhouse@gmx.net>
Thu, 20 Jun 2024 19:03:49 +0000
(20:03 +0100)
youtube_dl/utils.py
patch
|
blob
|
history
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index cd43035667e147f8ad7ca29f99312e6f91c7b8cf..113c913df546ac083078465d05a16d1a46ee7645 100644
(file)
--- 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: