asserts
This commit is contained in:
parent
15f4110696
commit
ea298030f3
|
@ -181,6 +181,7 @@ class StableDiffusionHolder:
|
||||||
else:
|
else:
|
||||||
raise ValueError("auto detect of config failed. please specify fp_config manually!")
|
raise ValueError("auto detect of config failed. please specify fp_config manually!")
|
||||||
|
|
||||||
|
assert os.path.isfile(fp_config), "Auto-init of the config file failed. Please specify manually."
|
||||||
|
|
||||||
assert os.path.isfile(fp_config), f"Your config file does not exist: {fp_config}"
|
assert os.path.isfile(fp_config), f"Your config file does not exist: {fp_config}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue