Skip to content

Commit 2479e64

Browse files
committed
fix: add guard for None metadata
Signed-off-by: Casper Nielsen <[email protected]>
1 parent 7869a64 commit 2479e64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/dapr-ext-langgraph/dapr/ext/langgraph/dapr_checkpointer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ def put(
109109
'has_writes': False,
110110
}
111111

112+
# Guard case where metadata is None
113+
metadata = metadata or {}
114+
112115
if all(key in metadata for key in ['source', 'step']):
113116
checkpoint_data['source'] = metadata['source']
114117
checkpoint_data['step'] = metadata['step']

0 commit comments

Comments
 (0)