This commit is contained in:
pukkandan 2022-08-04 20:18:29 +05:30
parent 4080efeb01
commit 05e2243e80
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39
1 changed files with 1 additions and 1 deletions

View File

@ -5739,7 +5739,7 @@ class RetryManager:
if not count: if not count:
return warn(e) return warn(e)
elif isinstance(e, ExtractorError): 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})...') 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 delay = float_or_none(sleep_func(n=count - 1)) if callable(sleep_func) else sleep_func