Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions python/grass/temporal/abstract_space_time_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1765,14 +1765,12 @@ def _update_where_statement_by_spatial_extent(
if not spatial_relation:
spatial_relation = "overlaps"
elif spatial_relation not in {"overlaps", "is_contained", "contains"}:
self.msgr.error(
_(
"Invalid spatial relation <{}> requested."
"Only values 'overlaps', 'is_contained', and 'contains' are \
allowed."
).format(spatial_relation)
)
raise
msg = _(
"Invalid spatial relation <{}> requested. "
"Only values 'overlaps', 'is_contained', and 'contains' are allowed."
).format(spatial_relation)
self.msgr.error(msg)
raise ValueError(msg)
# SQL implementation of overlap, is_contained, and contains
where += ""

Expand Down
Loading