diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index 9b130e109b..97bd33506a 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