mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-01-26 11:19:53 +00:00
feat: controlnet attribute error warning
This commit is contained in:
@@ -90,7 +90,13 @@ class ControlNetExt:
|
||||
)
|
||||
]
|
||||
|
||||
self.external_cn.update_cn_script_in_processing(p, cn_units)
|
||||
try:
|
||||
self.external_cn.update_cn_script_in_processing(p, cn_units)
|
||||
except AttributeError as e:
|
||||
if "script_args_value" not in str(e):
|
||||
raise
|
||||
msg = "[-] Adetailer: ControlNet option not available in WEBUI version lower than 1.6.0 due to updates in ControlNet"
|
||||
raise RuntimeError(msg) from e
|
||||
|
||||
|
||||
def get_cn_model_dirs() -> list[Path]:
|
||||
|
||||
Reference in New Issue
Block a user