Fix python3 indentation

Signed-off-by: François Andriot <francois.andriot@thalesgroup.com>
pull/37/head r14.1.0
François Andriot 2 years ago
parent cde36fb6b3
commit b2b1acd415

@ -28,13 +28,13 @@ class Publisher:
return []
def run(self):
self.localhostname = split(socket.gethostname(),'.')[0]+'.local.'
try:
self.localip = socket.gethostbyname(self.localhostname)
self.zeroconf = Zeroconf.Zeroconf(self.localip)
except:
return
self.active = True
toRegister = self.services()
@ -52,5 +52,3 @@ class Publisher:
def shutdown(self):
if self.active: self.zeroconf.close()

Loading…
Cancel
Save