A feature-rich command-line audio/video downloader
[cookies] Fix compatibility for Python <=3.9 in traceback
Simon Sawickic5f0f58efd8c
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.pyindex 4f45d7faf6..9ac6ca0d0c 100644--- a/yt_dlp/YoutubeDL.py+++ b/yt_dlp/YoutubeDL.py@@ -4120,7 +4120,8 @@ class YoutubeDL:self.params.get('cookiefile'), self.params.get('cookiesfrombrowser'), self)except CookieLoadError as error:cause = error.__context__- self.report_error(str(cause), tb=''.join(traceback.format_exception(cause)))+ # compat: <=py3.9: `traceback.format_exception` has a different signature+ self.report_error(str(cause), tb=''.join(traceback.format_exception(None, cause, cause.__traceback__)))raise@property