Try fix restart loop
This commit is contained in:
parent
75cd457e0b
commit
e3e8c02174
@ -19,4 +19,6 @@ class Update:
|
||||
|
||||
@staticmethod
|
||||
def restart_bot():
|
||||
os.execvp(sys.executable, [sys.executable, sys.argv[0]])
|
||||
if sys.argv[1] == 'restart':
|
||||
return
|
||||
os.execvp(sys.executable, [sys.executable, sys.argv[0], 'restart'])
|
Loading…
Reference in New Issue
Block a user