added return when exception is raise in nothread_use_path so that "do everything" process stop when an error is occuring

This commit is contained in:
Faraphel 2021-08-24 19:58:29 +02:00
parent cf8d1bb20e
commit 4758e6ae88

View file

@ -119,12 +119,16 @@ class Gui:
self.frame_action.grid(row=3, column=1, sticky="NEWS")
except RomAlreadyPatched:
messagebox.showerror(self.translate("Error"), self.translate("This game is already modded"))
raise RomAlreadyPatched
except InvalidGamePath:
messagebox.showerror(self.translate("Error"), self.translate("The file path in invalid"))
raise InvalidGamePath
except InvalidFormat:
messagebox.showerror(self.translate("Error"), self.translate("This game's format is invalid"))
raise InvalidFormat
except:
self.log_error()
raise Exception
finally:
self.progress(show=False)