From: paulfantom Date: Wed, 13 Jul 2016 08:15:50 +0000 (+0200) Subject: debugging X-Git-Tag: v1.3.0~72^2~11 X-Git-Url: https://arthur.barton.de/gitweb/?a=commitdiff_plain;h=cb5d2be5f4f01d44d4b27a3a0fc8d8df60976003;p=netdata.git debugging --- diff --git a/plugins.d/python.d.plugin b/plugins.d/python.d.plugin index 2acfe16f..b314e1b0 100755 --- a/plugins.d/python.d.plugin +++ b/plugins.d/python.d.plugin @@ -286,8 +286,10 @@ class PythonCharts(object): if job.name is not None: prefix += "/" + job.name prefix += ": " - - self.jobs.remove(job) + try: + self.jobs.remove(job) + except Exception as e: + msg.debug("This shouldn't happen. NO " + prefix + " IN LIST:" + str(self.jobs)) if reason is None: return elif reason[:3] == "no ": diff --git a/python.d/python_modules/base.py b/python.d/python_modules/base.py index e2846977..aabcc4ba 100644 --- a/python.d/python_modules/base.py +++ b/python.d/python_modules/base.py @@ -502,7 +502,7 @@ class SocketService(SimpleService): else: self.name = str(self.name) try: - self.unix_socket = int(self.configuration['socket']) + self.unix_socket = str(self.configuration['socket']) except (KeyError, TypeError): self.error("No unix socket specified. Trying TCP/IP socket.") try: