mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-28 19:23:14 +01:00
Log the stack trace when the model fails to load
This commit is contained in:
parent
424ec40fa5
commit
8ba0b34853
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user