Fail with an error if the desired model (non-Stable Diffusion) wasn't found

This commit is contained in:
cmdr2 2023-06-06 16:56:37 +05:30
parent 6ae5cb28cf
commit 05c2de9450

View File

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