From 50d0a00bffecd0e0f7b5b9274d2d2cefe0d9485c Mon Sep 17 00:00:00 2001 From: Faraphel Date: Mon, 17 Jan 2022 13:57:46 +0100 Subject: [PATCH] some error weren't stopping the installation --- source/Game.py | 8 ++++++-- source/Gui.py | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/source/Game.py b/source/Game.py index 6376f53..ea37cf7 100644 --- a/source/Game.py +++ b/source/Game.py @@ -320,8 +320,10 @@ class Game: messagebox.showinfo(self.gui.translate("End"), self.gui.translate("The mod have been installed !")) - except: + except Exception as e: self.gui.log_error() + raise e + finally: self.gui.progress(show=False) self.gui.quit() @@ -495,8 +497,10 @@ class Game: self.patch_autoadd() self.patch_tracks() - except: + except Exception as e: self.gui.log_error() + raise e + finally: self.gui.progress(show=False) diff --git a/source/Gui.py b/source/Gui.py index f70ace5..3424a7e 100644 --- a/source/Gui.py +++ b/source/Gui.py @@ -203,9 +203,9 @@ class Gui: except InvalidFormat: messagebox.showerror(self.translate("Error"), self.translate("This game's format is invalid")) raise InvalidFormat - except: + except Exception as e: self.log_error() - raise Exception + raise e finally: self.progress(show=False)