From cb5d2be5f4f01d44d4b27a3a0fc8d8df60976003 Mon Sep 17 00:00:00 2001 From: paulfantom Date: Wed, 13 Jul 2016 10:15:50 +0200 Subject: [PATCH] debugging --- plugins.d/python.d.plugin | 6 ++++-- python.d/python_modules/base.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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: -- 2.39.2