summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2022-01-17 10:49:32 +0300
committerGitHub <noreply@github.com>2022-01-17 10:49:32 +0300
commit116bf2a772845cba12e7a01984d8b8b8c234ebeb (patch)
treeaccd6479f176ffe0604b0766807a9d88126b9ddc
parenta5f8d3da3b9ad4e438786e73382987e5fae91224 (diff)
fix(python.d): ignore decoding errors in ExecutableService (#11979)
-rw-r--r--collectors/python.d.plugin/python_modules/bases/FrameworkServices/ExecutableService.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/python.d.plugin/python_modules/bases/FrameworkServices/ExecutableService.py b/collectors/python.d.plugin/python_modules/bases/FrameworkServices/ExecutableService.py
index dea50eea0d..a74b4239ee 100644
--- a/collectors/python.d.plugin/python_modules/bases/FrameworkServices/ExecutableService.py
+++ b/collectors/python.d.plugin/python_modules/bases/FrameworkServices/ExecutableService.py
@@ -35,7 +35,7 @@ class ExecutableService(SimpleService):
for line in std:
try:
data.append(line.decode('utf-8'))
- except TypeError:
+ except (TypeError, UnicodeDecodeError):
continue
return data