Skip to content

Commit 491143e

Browse files
committed
fixup! Better argument handling in _get_geometry_argument
1 parent 99852ea commit 491143e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openeo/rest/datacube.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ def _get_geometry_argument(
10991099
elif isinstance(argument, dict):
11001100
geometry = argument
11011101
else:
1102-
raise OpenEoClientException("Invalid geometry argument: {g!r}".format(g=argument))
1102+
raise OpenEoClientException(f"Invalid geometry argument: {argument!r}")
11031103

11041104
if geometry.get("type") not in valid_geojson_types:
11051105
raise OpenEoClientException("Invalid geometry type {t!r}, must be one of {s}".format(

0 commit comments

Comments
 (0)