minor fixes
paulfantom committed
Jul 13, 2016 at 13:29 UTC
c67c8d1e8ffa80d46a4f29a2de7b833c091edcf9
2 files changed
+2
-1
plugins.d/python.d.plugin
+1
-1
@@ -283,7 +283,7 @@ class PythonCharts(object):
283
:param reason: str
284
"""
285
prefix = job.__module__
286
- if job.name is not None:
286
+ if job.name is not None and len(job.name) != 0:
287
prefix += "/" + job.name
288
prefix += ": "
289
try:
python.d/squid.chart.py
+1
@@ -104,6 +104,7 @@ class Service(SocketService):
104
if self._get_data() is not None:
105
return True
106
else:
107
+ self.error("No data returned")
108
return False
109
110