Raise the waiting time between retries.
This commit is contained in:
parent
3faf8a0f97
commit
37361da75d
|
@ -63,7 +63,7 @@ def safely(retries: int = 0) -> T.Callable:
|
||||||
"Something went wrong: %s [tentative #%s]", e, ret - r
|
"Something went wrong: %s [tentative #%s]", e, ret - r
|
||||||
)
|
)
|
||||||
r -= 1
|
r -= 1
|
||||||
time.sleep(1)
|
time.sleep(2) # TODO: set value from config.
|
||||||
|
|
||||||
return _protection
|
return _protection
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user