From 8ba0b3485380d5c45750a57d4e0fb2caa3e02ac9 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Tue, 11 Apr 2023 15:13:41 +0530 Subject: [PATCH] Log the stack trace when the model fails to load --- ui/easydiffusion/model_manager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/easydiffusion/model_manager.py b/ui/easydiffusion/model_manager.py index a06c56cf..29f5f88e 100644 --- a/ui/easydiffusion/model_manager.py +++ b/ui/easydiffusion/model_manager.py @@ -44,8 +44,7 @@ def load_default_models(context: Context): load_model(context, model_type) except Exception as e: log.error(f"[red]Error while loading {model_type} model: {context.model_paths[model_type]}[/red]") - log.error(f"[red]Error: {e}[/red]") - log.error(f"[red]Consider removing the model from the model folder.[red]") + log.exception(e) def unload_all(context: Context):