From 3bf4ecca3328f791c7390f2ccfd1946c9baf16bb Mon Sep 17 00:00:00 2001 From: tema Date: Sun, 9 Oct 2022 15:59:54 +0300 Subject: [PATCH] Fix --- utils/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/misc.py b/utils/misc.py index 76bd6f3..376f273 100644 --- a/utils/misc.py +++ b/utils/misc.py @@ -19,6 +19,6 @@ class Update: @staticmethod def restart_bot(): - if len(sys.argv >= 2) and sys.argv[1] == 'restart': + if len(sys.argv) >= 2 and sys.argv[1] == 'restart': return os.execvp(sys.executable, [sys.executable, sys.argv[0], 'restart']) \ No newline at end of file