Skip to content

Commit cb5d2be

Browse files
committed
debugging
1 parent 737577a commit cb5d2be

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎plugins.d/python.d.plugin‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,10 @@ class PythonCharts(object):
286286
if job.name is not None:
287287
prefix += "/" + job.name
288288
prefix += ": "
289-
290-
self.jobs.remove(job)
289+
try:
290+
self.jobs.remove(job)
291+
except Exception as e:
292+
msg.debug("This shouldn't happen. NO " + prefix + " IN LIST:" + str(self.jobs))
291293
if reason is None:
292294
return
293295
elif reason[:3] == "no ":

‎python.d/python_modules/base.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ def _parse_config(self):
502502
else:
503503
self.name = str(self.name)
504504
try:
505-
self.unix_socket = int(self.configuration['socket'])
505+
self.unix_socket = str(self.configuration['socket'])
506506
except (KeyError, TypeError):
507507
self.error("No unix socket specified. Trying TCP/IP socket.")
508508
try:

0 commit comments

Comments
 (0)