From 003ae341a9f8fbcc14cf6252fda72085d78271bb Mon Sep 17 00:00:00 2001 From: Louis_45 Date: Sun, 10 Dec 2023 16:19:59 +0100 Subject: [PATCH] Fixed PYL-R1722 --- run.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/run.py b/run.py index a1b8a6e..05cf435 100644 --- a/run.py +++ b/run.py @@ -61,6 +61,7 @@ ] } +import sys import os import json from tkinter import filedialog @@ -125,7 +126,7 @@ class messages: except FileNotFoundError: print(messages.NO_PROJECT_SELECTED) os.system('pause') - exit(1) + sys.exit(1) for patch in patches: file = file.replace(patches[patch][0], patches[patch][1], 1) @@ -143,4 +144,4 @@ class messages: print(messages.SAVED) os.system('pause') -exit(0) +sys.exit(0)