Browse Source

Fix an overly aggressive assertion.

This could happen when attempting to evaluate `IS_CHANGED` for a node
during the creation of the cache (in order to create the cache key).
pull/2666/head
Jacob Segal 9 months ago
parent
commit
9c1e3f7b98
  1. 3
      comfy/caching.py

3
comfy/caching.py

@ -172,7 +172,8 @@ class BasicCache:
self.cache[cache_key] = value self.cache[cache_key] = value
def _get_immediate(self, node_id): def _get_immediate(self, node_id):
assert self.cache_key_set is not None if self.cache_key_set is None:
return None
cache_key = self.cache_key_set.get_data_key(node_id) cache_key = self.cache_key_set.get_data_key(node_id)
if cache_key in self.cache: if cache_key in self.cache:
return self.cache[cache_key] return self.cache[cache_key]

Loading…
Cancel
Save