Skip to content

Commit

Permalink
fix(near point): raise error if radius is nan
Browse files Browse the repository at this point in the history
  • Loading branch information
HAEKADI committed Oct 17, 2024
1 parent 5dfb291 commit ae3412e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controller/search_params_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def cast_as_integer(cls, value: str, info) -> int:
@field_validator("radius", "lat", "lon", mode="before")
def cast_as_float(cls, value: str, info) -> float:
try:
if value == "nan":
if value.lower() == "nan":
raise ValueError
float(value)
except ValueError:
Expand Down

0 comments on commit ae3412e

Please sign in to comment.