Skip to content

Commit

Permalink
Merge pull request #1342 from Drakkar-Software/dev
Browse files Browse the repository at this point in the history
[Webhook] catch stop error
  • Loading branch information
GuillaumeDSM authored Aug 26, 2024
2 parents 0fe5786 + 0883626 commit 6d6a04a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Services/Services_bases/webhook_service/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

0 comments on commit 6d6a04a

Please sign in to comment.