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
1 changed files with 5 additions and 1 deletions

View File

@ -402,7 +402,11 @@ class HttpBackend(Backend):
def run(self):
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:
self.logger.info('Initializing websocket interface')