mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-17 00:43:48 +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()
|
entry['data'] = f.read()
|
||||||
return entry
|
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 = entry.copy()
|
||||||
entry.pop('path', None)
|
entry.pop('path', None)
|
||||||
if remove_data:
|
if remove_data:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user