Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 758663a

Browse files
BenHewinsaviau
authored andcommitted
_is_float should return false rather than an error when the object being tested is not a valid param for float() (#475)
1 parent 046b219 commit 758663a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

influxdb/line_protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def quote_literal(value):
7575
def _is_float(value):
7676
try:
7777
float(value)
78-
except ValueError:
78+
except (TypeError, ValueError):
7979
return False
8080

8181
return True

0 commit comments

Comments
 (0)