mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-02 02:20:02 +08:00
Add None check for sanitize_entry
This commit is contained in:
parent
291ceccf54
commit
8fc1f6e0eb
@ -44,7 +44,9 @@ class SubgraphManager:
|
||||
entry['data'] = f.read()
|
||||
return entry
|
||||
|
||||
async def sanitize_entry(self, entry: SubgraphEntry, remove_data=False) -> SubgraphEntry:
|
||||
async def sanitize_entry(self, entry: SubgraphEntry | None, remove_data=False) -> SubgraphEntry | None:
|
||||
if entry is None:
|
||||
return None
|
||||
entry = entry.copy()
|
||||
entry.pop('path', None)
|
||||
if remove_data:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user