mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-22 08:13:22 +01:00
Fail with an error if the desired model (non-Stable Diffusion) wasn't found
This commit is contained in:
parent
6ae5cb28cf
commit
05c2de9450
@ -123,6 +123,9 @@ def resolve_model_to_use(model_name: str = None, model_type: str = None):
|
|||||||
)
|
)
|
||||||
return default_model_path
|
return default_model_path
|
||||||
|
|
||||||
|
if model_name:
|
||||||
|
raise Exception(f"Could not find the desired model {model_name}! Is it present in the {model_dir} folder?")
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user