We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce96e85 commit a7eb5d9Copy full SHA for a7eb5d9
datastore/google/cloud/datastore/helpers.py
@@ -134,7 +134,7 @@ def entity_from_protobuf(pb):
134
# Check if ``value_pb`` was excluded from index. Lists need to be
135
# special-cased and we require all ``exclude_from_indexes`` values
136
# in a list agree.
137
- if is_list:
+ if is_list and len(value) > 0:
138
exclude_values = set(value_pb.exclude_from_indexes
139
for value_pb in value_pb.array_value.values)
140
if len(exclude_values) != 1:
0 commit comments