From 37361da75dd1076c147deb0bf19f2db6304c6833 Mon Sep 17 00:00:00 2001 From: Blallo Date: Thu, 1 Aug 2019 16:15:24 +0200 Subject: [PATCH] Raise the waiting time between retries. --- bot_z/operator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot_z/operator.py b/bot_z/operator.py index 466d203..77d3d6f 100644 --- a/bot_z/operator.py +++ b/bot_z/operator.py @@ -63,7 +63,7 @@ def safely(retries: int = 0) -> T.Callable: "Something went wrong: %s [tentative #%s]", e, ret - r ) r -= 1 - time.sleep(1) + time.sleep(2) # TODO: set value from config. return _protection