Skip to content

Commit 44589bb

Browse files
Update aws_lambda_powertools/utilities/data_classes/kinesis_stream_event.py
Co-authored-by: Leandro Damascena <[email protected]> Signed-off-by: kiitosu <[email protected]>
1 parent ac03550 commit 44589bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws_lambda_powertools/utilities/data_classes/kinesis_stream_event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def window(self) -> KinesisStreamWindow | None:
132132

133133
@property
134134
def state(self) -> dict[str, Any]:
135-
return self["state"]
135+
return self.get("state") or {}
136136

137137
@property
138138
def shard_id(self) -> str | None:

0 commit comments

Comments
 (0)