]> jfr.im git - yt-dlp.git/commitdiff
Fix bug in be5c1ae86202be54225d376756f5d9f0bf8f392a
authorpukkandan <redacted>
Thu, 4 Aug 2022 14:48:29 +0000 (20:18 +0530)
committerpukkandan <redacted>
Thu, 4 Aug 2022 14:48:29 +0000 (20:18 +0530)
yt_dlp/utils.py

index d405ed3e3798c211148342f66e7e613706538afa..c56f31013f9ac535956279d0b78f9ec9b50eaab3 100644 (file)
@@ -5739,7 +5739,7 @@ def report_retry(e, count, retries, *, sleep_func, info, warn, error=None, suffi
         if not count:
             return warn(e)
         elif isinstance(e, ExtractorError):
-            e = remove_end(e.cause or e.orig_msg, '.')
+            e = remove_end(str(e.cause) or e.orig_msg, '.')
         warn(f'{e}. Retrying{format_field(suffix, None, " %s")} ({count}/{retries})...')
 
         delay = float_or_none(sleep_func(n=count - 1)) if callable(sleep_func) else sleep_func