fix(python.d): ignore decoding errors in ExecutableService (#11979)
Ilya Mashchenko committed
Jan 17, 2022 at 10:49 UTC
116bf2a772845cba12e7a01984d8b8b8c234ebeb
1 file changed
+1
-1
collectors/python.d.plugin/python_modules/bases/FrameworkServices/ExecutableService.py
+1
-1
@@ -35,7 +35,7 @@ class ExecutableService(SimpleService):
35
for line in std:
36
try:
37
data.append(line.decode('utf-8'))
38
- except TypeError:
38
+ except (TypeError, UnicodeDecodeError):
39
continue
40
41
return data