[utils] `ExtractorError`: Fix `exc_info`

pull/4158/head
pukkandan 2 years ago
parent 612f2be5d3
commit 5df1444255
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

@ -1037,6 +1037,8 @@ class ExtractorError(YoutubeDLError):
self.video_id = video_id
self.ie = ie
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((
format_field(ie, None, '[%s] '),

Loading…
Cancel
Save