]> arthur.barton.de Git - netdata.git/commitdiff
convert value to string in error message in set method
authorpaulfantom <paulfantom@gmail.com>
Sun, 24 Jul 2016 10:18:52 +0000 (12:18 +0200)
committerpaulfantom <paulfantom@gmail.com>
Sun, 24 Jul 2016 10:18:52 +0000 (12:18 +0200)
python.d/python_modules/base.py

index 47d92a430bee723ae676f81e9d5579c0a9d624ac..0eaf5cd613b98211752e54d0aa5fa81ab09cdda4 100644 (file)
@@ -289,7 +289,7 @@ class SimpleService(threading.Thread):
         try:
             value = str(int(value))
         except TypeError:
-            self.error("cannot set non-numeric value:", value)
+            self.error("cannot set non-numeric value:", str(value))
             return False
         self._line("SET", id, "=", str(value))
         self.__chart_set = True