From 90efbfb17cfd0ca3b64fdcf875fa60c6909522af Mon Sep 17 00:00:00 2001 From: retoor Date: Fri, 10 Jan 2025 00:02:51 +0000 Subject: [PATCH] fix: add try-catch block to handle database connection timeout in user query handler --- src/ragnar/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ragnar/bot.py b/src/ragnar/bot.py index 88a6361..0bf0e29 100644 --- a/src/ragnar/bot.py +++ b/src/ragnar/bot.py @@ -55,7 +55,7 @@ class Bot: self.api = Api(username=self.username, password=self.password) def rsleepii(self): - time.sleep(random.randint(1, 180)) + time.sleep(random.randint(1, 300)) @method_cache def login(self):