]> arthur.barton.de Git - netdata.git/commitdiff
minor fixes
authorpaulfantom <paulfantom@gmail.com>
Wed, 13 Jul 2016 11:29:47 +0000 (13:29 +0200)
committerpaulfantom <paulfantom@gmail.com>
Wed, 13 Jul 2016 11:29:47 +0000 (13:29 +0200)
plugins.d/python.d.plugin
python.d/squid.chart.py

index 01992c550828fd10d72582cbe1843df6374662ab..d44721965c4a5f905639e5a3180425f55ab02bf0 100755 (executable)
@@ -283,7 +283,7 @@ class PythonCharts(object):
         :param reason: str
         """
         prefix = job.__module__
-        if job.name is not None:
+        if job.name is not None and len(job.name) != 0:
             prefix += "/" + job.name
         prefix += ": "
         try:
index c298cd9609b76f639fc60be4a8c6d39bc686deec..09453ccd4f796c411c202111754233a5274b14f0 100644 (file)
@@ -104,6 +104,7 @@ class Service(SocketService):
             if self._get_data() is not None:
                 return True
             else:
+                self.error("No data returned")
                 return False