From: paulfantom Date: Wed, 13 Jul 2016 15:41:22 +0000 (+0200) Subject: I added test to establish if sensor value is a number. X-Git-Tag: v1.3.0~71^2~1 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5d254c37e8ee0f62114ae536caf67679eac0b9b;p=netdata.git I added test to establish if sensor value is a number. should fix #682 --- diff --git a/python.d/sensors.chart.py b/python.d/sensors.chart.py index edfe125d..4345228e 100644 --- a/python.d/sensors.chart.py +++ b/python.d/sensors.chart.py @@ -83,6 +83,10 @@ class Service(SimpleService): if len(self.chips) != 0 and not any([ex.startswith(pref) for ex in self.chips]): continue for feature in chip: + try: + float(feature.get_value()) + except ValueError: + continue if feature.get_value() == 0: continue if sensors.TYPE_DICT[feature.type] == type: