Skip to content

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() (influxdata#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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy