Don't fail hard if the Zeroconf service can't be registered

This commit is contained in:
Fabio Manganiello 2021-10-24 02:51:05 +02:00
parent 6c0a8bf259
commit 49676fcc7f
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -402,7 +402,11 @@ class HttpBackend(Backend):
def run(self): def run(self):
super().run() super().run()
self.register_service(port=self.port) try:
self.register_service(port=self.port)
except Exception as e:
self.logger.warning('Could not register the Zeroconf service')
self.logger.exception(e)
if not self.disable_websocket: if not self.disable_websocket:
self.logger.info('Initializing websocket interface') self.logger.info('Initializing websocket interface')