Raise the waiting time between retries.

This commit is contained in:
sfigato 2019-08-01 16:15:24 +02:00 committed by blallo
parent 3faf8a0f97
commit 37361da75d
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F

View File

@ -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