0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-22 02:15:12 +00:00

[utils] ExtractorError: Fix for older python versions

Closes #2993
This commit is contained in:
pukkandan 2022-03-09 06:42:14 +05:30
parent 7a0ba75857
commit e491d06d34
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39

View file

@ -1085,7 +1085,7 @@ def __init__(self, msg, tb=None, expected=False, cause=None, video_id=None, ie=N
def format_traceback(self):
return join_nonempty(
self.traceback and ''.join(traceback.format_tb(self.traceback)),
self.cause and ''.join(traceback.format_exception(self.cause)[1:]),
self.cause and ''.join(traceback.format_exception(None, self.cause, self.cause.__traceback__)[1:]),
delim='\n') or None