Update main.py

This commit is contained in:
OusmBlueNinja 2023-08-27 18:28:52 -05:00 committed by GitHub
parent 2cccab40f1
commit 01f7015d4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
import json
import os
import sys
@ -70,6 +71,7 @@ class color:
def restart_program():
python = sys.executable
subprocess.call([python, __file__])
clear()
sys.exit()
try:
@ -347,7 +349,10 @@ def start():
print("")
main()
except (KeyboardInterrupt, EOFError):
restart_program()
try:
restart_program()
except (KeyboardInterrupt, EOFError):
restart_program()
if __name__ == '__main__':