8000 Explicitly catch error types · influxdata/influxdb-python@712a927 · GitHub
[go: up one dir, main page]

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

Commit 712a927

Browse files
Benjamin HewinsBenjamin Hewins
authored andcommitted
Explicitly catch error types
1 parent 5d3d498 commit 712a927

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
@@ -77,7 +77,7 @@ def quote_literal(value):
7777
def _is_float(value):
7878
try:
7979
float(value)
80-
except:
80+
except (TypeError, ValueError):
8181
return False
8282
return True
8383

0 commit comments

Comments
 (0)
0