]> arthur.barton.de Git - netdata.git/commitdiff
wrap arguments in str()
authorpaulfantom <paulfantom@gmail.com>
Fri, 15 Jul 2016 14:46:26 +0000 (16:46 +0200)
committerpaulfantom <paulfantom@gmail.com>
Fri, 15 Jul 2016 14:46:26 +0000 (16:46 +0200)
python.d/python_modules/base.py

index 93423595949b23f4ac4fea4aafb410dd43da62a9..c8309dbf69070b07fe0f28918dcd821214764f21 100644 (file)
@@ -504,7 +504,7 @@ class SocketService(SimpleService):
                     sock.settimeout(0.05)  # Just to be sure
 
             except Exception as e:
-                self.error(str(e), "used configuration: host:", self.host, "port:", self.port, "socket:", self.unix_socket)
+                self.error(str(e), "used configuration: host:", str(self.host), "port:", str(self.port), "socket:", str(self.unix_socket))
                 self.sock = None
                 return None
 
@@ -518,14 +518,14 @@ class SocketService(SimpleService):
                 except:
                     pass
                 self.sock = None
-                self.error(str(e), "used configuration: host:", self.host, "port:", self.port, "socket:", self.unix_socket)
+                self.error(str(e), "used configuration: host:", str(self.host), "port:", str(self.port), "socket:", str(self.unix_socket))
                 return None
 
         size = 2
         try:
             data = sock.recv(size).decode()
         except Exception as e:
-            self.error(str(e), "used configuration: host:", self.host, "port:", self.port, "socket:", self.unix_socket)
+            self.error(str(e), "used configuration: host:", str(self.host), "port:", str(self.port), "socket:", str(self.unix_socket))
             sock.close()
             return None