--- a/runtime/ServicePublisher.py Tue Oct 03 16:12:55 2017 +0300
+++ b/runtime/ServicePublisher.py Tue Oct 03 16:31:31 2017 +0300
@@ -45,7 +45,7 @@
def RegisterService(self, name, ip, port):
try:
self._RegisterService(name, ip, port)
- except Exception, e:
+ except Exception:
self.retrytimer = threading.Timer(2, self.RegisterService, [name, ip, port])
self.retrytimer.start()
@@ -93,6 +93,6 @@
s.close()
if host != '0.0.0.0':
return host
- except Exception, e:
+ except Exception:
pass
return socket.gethostbyname(socket.gethostname())