Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

caching: Handle None outputs tuple case (#10637)

rattusa389ee01bb7b
diff --git a/comfy_execution/caching.py b/comfy_execution/caching.py
index e077f78b0..326a279fc 100644
--- a/comfy_execution/caching.py
+++ b/comfy_execution/caching.py
@@ -399,6 +399,8 @@ class RAMPressureCache(LRUCache):
ram_usage = RAM_CACHE_DEFAULT_RAM_USAGE
def scan_list_for_ram_usage(outputs):
nonlocal ram_usage
+ if outputs is None:
+ return
for output in outputs:
if isinstance(output, list):
scan_list_for_ram_usage(output)