From e491d06d344dde805bf5ea14d63310428cc7edf4 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Wed, 9 Mar 2022 06:42:14 +0530 Subject: [PATCH] [utils] ExtractorError: Fix for older python versions Closes #2993 --- yt_dlp/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index 9b130e109..97bd33506 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -1085,7 +1085,7 @@ class ExtractorError(YoutubeDLError): 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