From 49676fcc7f8d7a26496a14cb0fbbbd7a9b57ac74 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 24 Oct 2021 02:51:05 +0200 Subject: [PATCH] Don't fail hard if the Zeroconf service can't be registered --- platypush/backend/http/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platypush/backend/http/__init__.py b/platypush/backend/http/__init__.py index a6a365ca9..e2fb28d9d 100644 --- a/platypush/backend/http/__init__.py +++ b/platypush/backend/http/__init__.py @@ -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')