This commit is contained in:
tema 2022-10-09 15:59:54 +03:00
parent a628e561eb
commit 3bf4ecca33
Signed by: tema
GPG Key ID: 21FDB6D162488F6F

View File

@ -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'])