[utils] Save `orig_msg` in `ExtractorError`

This commit is contained in:
dirkf 2024-06-19 19:04:47 +01:00 committed by GitHub Actions
parent 4a8d1906f9
commit c5dc0b5674
1 changed files with 1 additions and 1 deletions

View File

@ -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: