Log a warning when there's an issue with IS_CHANGED.

This commit is contained in:
comfyanonymous 2024-08-16 08:50:17 -04:00
parent 86c5970ac0
commit 05a9f3faa1
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ class IsChangedCache:
try:
is_changed = _map_node_over_list(class_def, input_data_all, "IS_CHANGED")
node["is_changed"] = [None if isinstance(x, ExecutionBlocker) else x for x in is_changed]
except:
except Exception as e:
logging.warning("WARNING: {}".format(e))
node["is_changed"] = float("NaN")
finally:
self.is_changed[node_id] = node["is_changed"]