From 01f7015d4edb77310584a2df86791bee6afc961b Mon Sep 17 00:00:00 2001 From: OusmBlueNinja <89956790+OusmBlueNinja@users.noreply.github.com> Date: Sun, 27 Aug 2023 18:28:52 -0500 Subject: [PATCH] Update main.py --- main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 03c581e..510bb5d 100644 --- a/main.py +++ b/main.py @@ -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__':