From 7d9e66aadc1df5da282a261cc0b1c6d7781f86a5 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 25 Oct 2023 13:14:43 +0200 Subject: [PATCH] Update model_splitter_dialog.py Error handling for #103 --- hhnk_threedi_plugin/gui/model_splitter/model_splitter_dialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hhnk_threedi_plugin/gui/model_splitter/model_splitter_dialog.py b/hhnk_threedi_plugin/gui/model_splitter/model_splitter_dialog.py index edbe8b53..87f7e427 100644 --- a/hhnk_threedi_plugin/gui/model_splitter/model_splitter_dialog.py +++ b/hhnk_threedi_plugin/gui/model_splitter/model_splitter_dialog.py @@ -240,7 +240,7 @@ def create_schematisations(self): try: self.modelschematisations.create_schematisation(name=list_name) except Exception as e: - self.info_list.addItem(f"ERROR: {str(e)}") + self.info_list.addItem(f"{type(e).__name__}: {str(e)} (view Python error log for more info)") update_button_background(button=self.run_splitter_btn, color="red") raise e