mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
Fix bug in be5c1ae862
This commit is contained in:
parent
4080efeb01
commit
05e2243e80
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue