fix: Telegram-Polling-Task sauber canceln + WhatsApp CancelledError beim Shutdown unterdrücken
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
import logging
|
||||
from typing import Any, Callable, Awaitable
|
||||
|
||||
@@ -98,6 +99,8 @@ class WhatsAppChannel(BaseChannel):
|
||||
await self._process_notification(body)
|
||||
if receipt_id:
|
||||
await self._delete_notification(receipt_id)
|
||||
except asyncio.CancelledError:
|
||||
raise
|
||||
except Exception as exc:
|
||||
logger.error("WhatsApp poll error: %s", exc)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user