From 8d91f99a23153dc5f08bce6e85d4cb7aea172daa Mon Sep 17 00:00:00 2001 From: Kevin Nitro Date: Wed, 15 Jan 2025 23:50:33 +0700 Subject: [PATCH] chore: change is None to not check --- src/check_phat_nguoi/notify/send_notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/check_phat_nguoi/notify/send_notifications.py b/src/check_phat_nguoi/notify/send_notifications.py index 3342356..1b3cefc 100644 --- a/src/check_phat_nguoi/notify/send_notifications.py +++ b/src/check_phat_nguoi/notify/send_notifications.py @@ -33,7 +33,7 @@ async def _send_messages(self, notification_config: BaseNotificationConfig) -> N ) async def send(self) -> None: - if config.notifications is None: + if not config.notifications: logger.debug("No notification was given. Skip notifying") return self._plate_messages = tuple(