]> arthur.barton.de Git - netdata.git/commitdiff
plugin: ignore encoding errors (hddtemp related)
authorRomain Dartigues <romain.dartigues@gmail.com>
Sun, 9 Oct 2016 16:02:31 +0000 (18:02 +0200)
committerRomain Dartigues <romain.dartigues@gmail.com>
Sun, 9 Oct 2016 16:02:31 +0000 (18:02 +0200)
python.d/python_modules/base.py

index c2bbed2a572cc6011f0df1cc13ddef3339caa53a..44c7dea3afdf3f826b882f844e79b32540e3e408 100644 (file)
@@ -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: