mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-01-14 10:19:46 +01:00
Merge pull request #1166 from JeLuF/not_yet
Don't save model_path if initial load fails
This commit is contained in:
commit
7fc2ed28b1
@ -49,6 +49,7 @@ def load_default_models(context: Context):
|
|||||||
except Exception as e:
|
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 while loading {model_type} model: {context.model_paths[model_type]}[/red]")
|
||||||
log.exception(e)
|
log.exception(e)
|
||||||
|
del context.model_paths[model_type]
|
||||||
|
|
||||||
def unload_all(context: Context):
|
def unload_all(context: Context):
|
||||||
for model_type in KNOWN_MODEL_TYPES:
|
for model_type in KNOWN_MODEL_TYPES:
|
||||||
|
Loading…
Reference in New Issue
Block a user