mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-10-29 21:57:50 +00:00
[utils] Better traceback for ExtractorError
This commit is contained in:
@@ -749,7 +749,7 @@ class InfoExtractor(object):
|
||||
|
||||
errmsg = '%s: %s' % (errnote, error_to_compat_str(err))
|
||||
if fatal:
|
||||
raise ExtractorError(errmsg, sys.exc_info()[2], cause=err)
|
||||
raise ExtractorError(errmsg, cause=err)
|
||||
else:
|
||||
self.report_warning(errmsg)
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user