Skip to content

Commit c2d2238

Browse files
committed
fix: getting empty properties
1 parent 05f1213 commit c2d2238

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sqlalchemy_datastore/datastore_dbapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,6 @@ def parse_properties(cls, prop_k: str, prop_v: dict):
491491
prop_value = prop_v["dictValue"]
492492
prop_type = _types.STRUCT_FIELD_TYPES
493493
elif value_type == "entityValue":
494-
prop_value = prop_v["entityValue"]["properties"]
494+
prop_value = prop_v["entityValue"].get("properties") or {}
495495
prop_type = _types.STRUCT_FIELD_TYPES
496496
return prop_value, prop_type

0 commit comments

Comments
 (0)