From: Paweł Krupa Date: Sun, 9 Oct 2016 20:25:05 +0000 (+0200) Subject: Merge pull request #1093 from romain-dartigues/rdartigues X-Git-Tag: v1.5.0~239 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2015f140a1e26d87dc07ca21f677bc4f8d50b984;hp=874ac361887af737368951466f6a12e6ff05afc2;p=netdata.git Merge pull request #1093 from romain-dartigues/rdartigues plugin: ignore encoding errors (hddtemp related) --- diff --git a/python.d/python_modules/base.py b/python.d/python_modules/base.py index 1508e096..70c586f8 100644 --- a/python.d/python_modules/base.py +++ b/python.d/python_modules/base.py @@ -608,7 +608,7 @@ class SocketService(SimpleService): buf = self._sock.recv(4096) if len(buf) == 0 or buf is None: # handle server disconnect break - data += buf.decode() + data += buf.decode(errors='ignore') if self._check_raw_data(data): break else: