Log the stack trace when the model fails to load

This commit is contained in:
cmdr2 2023-04-11 15:13:41 +05:30
parent 424ec40fa5
commit 8ba0b34853

View File

@ -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):