Skip to content

Commit 5db1889

Browse files
committed
refactor: enhance assert bbox length with descriptive message
1 parent c71a355 commit 5db1889

File tree

1 file changed

+1
-1
lines changed
  • stac_fastapi/types/stac_fastapi/types

1 file changed

+1
-1
lines changed

stac_fastapi/types/stac_fastapi/types/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def str2bbox(x: str) -> Optional[BBox]:
3535
"""Convert string to BBox based on , delimiter."""
3636
if x:
3737
t = tuple(float(v) for v in str2list(x))
38-
assert len(t) == 4
38+
assert len(t) == 4, f"BBox '{x}' must have 4 values."
3939
return t
4040

4141
return None

0 commit comments

Comments
 (0)