Skip to content

Commit

Permalink
catch TypeError exception from None data value
Browse files Browse the repository at this point in the history
Fixes #706
  • Loading branch information
retzkek authored and DanCech committed Dec 5, 2017
1 parent 86497e4 commit 3b65a23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/carbon/protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def stringReceived(self, data):

try:
datapoint = (float(value), float(timestamp)) # force proper types
except ValueError:
except (ValueError, TypeError):
continue

# convert python2 unicode objects to str/bytes
Expand Down

0 comments on commit 3b65a23

Please sign in to comment.