From 2eac0fa3799b3d027148341186a52fb5a6288473 Mon Sep 17 00:00:00 2001 From: dirkf Date: Wed, 19 Jun 2024 19:04:47 +0100 Subject: [PATCH] [utils] Save `orig_msg` in `ExtractorError` --- youtube_dl/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.22.2