mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[utils] ExtractorError
: Fix exc_info
This commit is contained in:
parent
612f2be5d3
commit
5df1444255
1 changed files with 2 additions and 0 deletions
|
@ -1037,6 +1037,8 @@ def __init__(self, msg, tb=None, expected=False, cause=None, video_id=None, ie=N
|
||||||
self.video_id = video_id
|
self.video_id = video_id
|
||||||
self.ie = ie
|
self.ie = ie
|
||||||
self.exc_info = sys.exc_info() # preserve original exception
|
self.exc_info = sys.exc_info() # preserve original exception
|
||||||
|
if isinstance(self.exc_info[1], ExtractorError):
|
||||||
|
self.exc_info = self.exc_info[1].exc_info
|
||||||
|
|
||||||
super().__init__(''.join((
|
super().__init__(''.join((
|
||||||
format_field(ie, None, '[%s] '),
|
format_field(ie, None, '[%s] '),
|
||||||
|
|
Loading…
Reference in a new issue