From cf19301f963136621bed08d82c1f5572412f1bd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Wed, 22 Sep 2021 23:57:06 +0200 Subject: [PATCH] add 60s timeout to bot commands to prevent lockups --- tgbot/kollagen-bot/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tgbot/kollagen-bot/main.py b/tgbot/kollagen-bot/main.py index 9cbff3a..63af7b0 100644 --- a/tgbot/kollagen-bot/main.py +++ b/tgbot/kollagen-bot/main.py @@ -179,6 +179,7 @@ class KollagenBot: shell_cmd_line, check=True, capture_output=True, + timeout=60, ) ntf.seek(0)