From c67c8d1e8ffa80d46a4f29a2de7b833c091edcf9 Mon Sep 17 00:00:00 2001 From: paulfantom Date: Wed, 13 Jul 2016 13:29:47 +0200 Subject: [PATCH] minor fixes --- plugins.d/python.d.plugin | 2 +- python.d/squid.chart.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins.d/python.d.plugin b/plugins.d/python.d.plugin index 01992c55..d4472196 100755 --- a/plugins.d/python.d.plugin +++ b/plugins.d/python.d.plugin @@ -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: diff --git a/python.d/squid.chart.py b/python.d/squid.chart.py index c298cd96..09453ccd 100644 --- a/python.d/squid.chart.py +++ b/python.d/squid.chart.py @@ -104,6 +104,7 @@ class Service(SocketService): if self._get_data() is not None: return True else: + self.error("No data returned") return False -- 2.39.2