better handle partial models

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2024-10-24 11:36:21 -04:00
parent f4ed53c159
commit 321bfe8bc7
5 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -219,7 +219,7 @@ def control_run(state: str = '',
p_extra_args = {}
if shared.sd_model is None:
shared.log.warning('Model not loaded')
shared.log.warning('Aborted: op=control model not loaded')
return [], '', '', 'Error: model not loaded'
unit_type = unit_type.strip().lower() if unit_type is not None else ''