change sys.exit to os._exit for pypy
This commit is contained in:
parent
4bca9ff028
commit
83d38a77dc
@ -433,7 +433,7 @@ class KlipperScreen(Gtk.Window):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def error_modal_response(dialog, response_id):
|
def error_modal_response(dialog, response_id):
|
||||||
sys.exit(1)
|
os._exit(1)
|
||||||
|
|
||||||
def restart_ks(self, *args):
|
def restart_ks(self, *args):
|
||||||
logging.debug(f"Restarting {sys.executable} {' '.join(sys.argv)}")
|
logging.debug(f"Restarting {sys.executable} {' '.join(sys.argv)}")
|
||||||
@ -1222,4 +1222,4 @@ if __name__ == "__main__":
|
|||||||
main()
|
main()
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
logging.exception(f"Fatal error in main loop:\n{ex}\n\n{traceback.format_exc()}")
|
logging.exception(f"Fatal error in main loop:\n{ex}\n\n{traceback.format_exc()}")
|
||||||
sys.exit(1)
|
os._exit(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user