Skip to content

Commit a389ee0

Browse files
authored
caching: Handle None outputs tuple case (comfyanonymous#10637)
1 parent 9c71a66 commit a389ee0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

comfy_execution/caching.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@ def _ram_gb():
399399
ram_usage = RAM_CACHE_DEFAULT_RAM_USAGE
400400
def scan_list_for_ram_usage(outputs):
401401
nonlocal ram_usage
402+
if outputs is None:
403+
return
402404
for output in outputs:
403405
if isinstance(output, list):
404406
scan_list_for_ram_usage(output)

0 commit comments

Comments
 (0)