logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git
commit: 2eac0fa3799b3d027148341186a52fb5a6288473
parent 0153b387e57e0bb8e580f1869f85596d2767fb0d
Author: dirkf <fieldhouse@gmx.net>
Date:   Wed, 19 Jun 2024 19:04:47 +0100

[utils] Save `orig_msg` in `ExtractorError`

Diffstat:

Myoutube_dl/utils.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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: