]> arthur.barton.de Git - netdata.git/commitdiff
debugging
authorpaulfantom <paulfantom@gmail.com>
Wed, 13 Jul 2016 08:15:50 +0000 (10:15 +0200)
committerpaulfantom <paulfantom@gmail.com>
Wed, 13 Jul 2016 08:15:50 +0000 (10:15 +0200)
plugins.d/python.d.plugin
python.d/python_modules/base.py

index 2acfe16fd325eff9f928f403de3fd23ca93ae1d6..b314e1b09541d784ae7fe2f57053e46c38f6ba66 100755 (executable)
@@ -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 ":
index e28469779cbf99bec47c89dbc3f91cc5e504c700..aabcc4badef7dfb58c2099a66cb97bc389439410 100644 (file)
@@ -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: