mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-20 03:57:30 +08:00
Merge pull request #5072 from wumode/fix_retry
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import asyncio
|
||||
import inspect
|
||||
import time
|
||||
from functools import wraps
|
||||
@@ -48,7 +49,7 @@ def retry(ExceptionToCheck: Any,
|
||||
logger.warn(msg)
|
||||
else:
|
||||
print(msg)
|
||||
time.sleep(mdelay)
|
||||
await asyncio.sleep(mdelay)
|
||||
mtries -= 1
|
||||
mdelay *= backoff
|
||||
return await f(*args, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user