From 08836263868884d311075db786ab9e3ee466ed7a Mon Sep 17 00:00:00 2001 From: Guillaume De Saint Martin Date: Mon, 26 Aug 2024 09:07:33 +0200 Subject: [PATCH] [Webhook] catch stop error --- Services/Services_bases/webhook_service/webhook.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Services/Services_bases/webhook_service/webhook.py b/Services/Services_bases/webhook_service/webhook.py index b8ddb9900..0229461de 100644 --- a/Services/Services_bases/webhook_service/webhook.py +++ b/Services/Services_bases/webhook_service/webhook.py @@ -383,4 +383,7 @@ async def stop(self): if not self.use_web_interface_for_webhook and self.connected: ngrok.kill() if self.webhook_server: - self.webhook_server.stop() + try: + self.webhook_server.stop() + except Exception as err: + self.logger.warning(f"Error when stopping webhook server: {err}")