From 257647270c74ecbf9720417a60a4953755e1839d Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Fri, 26 May 2023 00:04:50 +0200 Subject: [PATCH] bugfix --- api/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/api/__init__.py b/api/__init__.py index 8fb577e9..e77c6c06 100644 --- a/api/__init__.py +++ b/api/__init__.py @@ -198,9 +198,10 @@ class ModelProcess: self.model_ready.value = 1 print("Model created successfully\n") except Exception as ex: - traceback.print_exc() - print("Couldn't build model") - print(ex) + if self.config["model"] is None: + print("No model is selected.\nPlease select a backend and a model to start using the ui.") + else: + print("Couldn't build model") self.model = None self._set_config_result['status'] ='failed' self._set_config_result['binding_status'] ='failed'