Skip to content

Commit

Permalink
fix bad string parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
3ll3d00d committed Dec 22, 2024
1 parent 639df09 commit 0c2f62f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/python/model/jriver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ def __init__(self, msg: str):
super().__init__(msg)


def s2f(val: str) -> float:
return float(val.replace(",", "."))
def s2f(val: any) -> float:
return float(val.replace(",", ".")) if isinstance(val, str) else float(val)

0 comments on commit 0c2f62f

Please sign in to comment.