From: dirkf Date: Wed, 19 Jun 2024 18:04:47 +0000 (+0100) Subject: [utils] Save `orig_msg` in `ExtractorError` X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=2eac0fa3799b3d027148341186a52fb5a6288473;p=youtube-dl [utils] Save `orig_msg` in `ExtractorError` --- 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: