Skip to content

Commit

Permalink
update getFloat to return empty strings as None
Browse files Browse the repository at this point in the history
  • Loading branch information
pipliggins committed Oct 1, 2024
1 parent abf1ee6 commit 2d70bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adtl/transformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def getFloat(
try:
return float(value)
except ValueError:
return value
return value if value != "" else None


def Percentage(value: float):
Expand Down

0 comments on commit 2d70bfa

Please sign in to comment.