Skip to content

Commit

Permalink
Avoid exception when no metadata was given. Should fix openeo-geopysp…
Browse files Browse the repository at this point in the history
…ark-driver. #612
  • Loading branch information
EmileSonneveld committed Sep 3, 2024
1 parent 2bac719 commit 29ae888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openeo/rest/datacube.py
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ def aggregate_spatial(
),
connection=self._connection,
# TODO: also add new "geometry" dimension #457
metadata=self.metadata.reduce_spatial(),
metadata=None if self.metadata is None else self.metadata.reduce_spatial(),
)

@openeo_process
Expand Down

0 comments on commit 29ae888

Please sign in to comment.