Skip to content

Commit

Permalink
Fix an overly aggressive assertion.
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
guill committed Feb 18, 2024
1 parent 12627ca commit 9c1e3f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion comfy/caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ def _set_immediate(self, node_id, value):
self.cache[cache_key] = value

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)
if cache_key in self.cache:
return self.cache[cache_key]
Expand Down

0 comments on commit 9c1e3f7

Please sign in to comment.