Skip to content

Commit 3b65a23

Browse files
retzkekDanCech
authored andcommitted
catch TypeError exception from None data value
Fixes #706
1 parent 86497e4 commit 3b65a23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/carbon/protocols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def stringReceived(self, data):
229229

230230
try:
231231
datapoint = (float(value), float(timestamp)) # force proper types
232-
except ValueError:
232+
except (ValueError, TypeError):
233233
continue
234234

235235
# convert python2 unicode objects to str/bytes

0 commit comments

Comments
 (0)