From a4311616176e728883ce9119d249abf2d41a7127 Mon Sep 17 00:00:00 2001 From: 0xdavidel <0xdavidel@gmail.com> Date: Sat, 26 Sep 2020 11:05:28 +0300 Subject: [PATCH] Fixed os.exit bug --- POE_QOL2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/POE_QOL2.py b/POE_QOL2.py index 1c46526..a8d110c 100644 --- a/POE_QOL2.py +++ b/POE_QOL2.py @@ -604,7 +604,7 @@ def stash_finder(self): self.pp.pprint("ERROR : {}".format(str(e))) Msg.showinfo(title=MSG_BOX_TITLE, message=str(e)) # Lets not continue running - os.exit(1) + sys.exit(1) self.debug_print("Stash tab retrieved") @@ -623,7 +623,7 @@ def read_default_chaos_filter_sections(self): debug_print("Exception reading chaos filter: {}".format(str(e))) Msg.showinfo('POE QoL error', "Exception reading chaos filter: {}".format(str(e))) - os.exit(1) + sys.exit(1) @@ -674,7 +674,7 @@ def pre_process_item_filter(self): self.debug_print("User selected a non existant filter file") Msg.showinfo( 'POE QoL error', 'Could not find your selected filter, try again next time!') - os.exit(1) + sys.exit(1) self.main_filter_path=main_filter_path @@ -694,7 +694,7 @@ def update_filter(self): "Something went very wrong while updating the filter") Msg.showinfo( 'POE QoL error', "Something went very wrong while updating the filter") - os.exit(1) + sys.exit(1) ignore_threshold_list=self.config['Config']['ignore_threshold'] # Copy of the full chaos filter, remove entries from here as we go through the different slots temp_chaos_filter=copy.copy(self.chaos_filter_parsed)