Skip to content

Commit ea80cad

Browse files
Extend exception catch to KeyError
Co-authored-by: Sadie L. Bartholomew <[email protected]>
1 parent 69ed7b4 commit ea80cad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cf/aggregate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4869,7 +4869,7 @@ def _aggregate_2_fields(
48694869
min(value0[0], value1[0]),
48704870
max(value0[1], value1[1]),
48714871
)
4872-
except (TypeError, IndexError):
4872+
except (TypeError, IndexError, KeyError):
48734873
# value0 and/or value1 is not set, or is
48744874
# non-CF-compliant.
48754875
parent0.del_property(prop, None)

0 commit comments

Comments
 (0)