mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-06 01:46:43 +02:00
Check for context attr
This commit is contained in:
parent
e8ee9275bc
commit
05cf4be89b
@ -107,7 +107,7 @@ def unload_all(context: Context):
|
|||||||
|
|
||||||
for model_type in KNOWN_MODEL_TYPES:
|
for model_type in KNOWN_MODEL_TYPES:
|
||||||
backend.unload_model(context, model_type)
|
backend.unload_model(context, model_type)
|
||||||
if model_type in context.model_load_errors:
|
if hasattr(context, "model_load_errors") and model_type in context.model_load_errors:
|
||||||
del context.model_load_errors[model_type]
|
del context.model_load_errors[model_type]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user