]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/utils.py
[youtube] Fix error reporting of "Incomplete data"
[yt-dlp.git] / yt_dlp / utils.py
index db355ec92a75724646c24e8963a91b9a67940986..49ee2286504ee69140b00bb50246e05e686c7098 100644 (file)
@@ -5764,7 +5764,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(str(e.cause) or e.orig_msg, '.')
+            e = remove_end(str_or_none(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