notify: update

This commit is contained in:
ZhymabekRoman 2024-10-22 17:24:55 +05:00
parent b6f6ef6472
commit 71faa02d6b

View file

@ -12,7 +12,7 @@ class MessageStatus(Enum):
def send_message(text: str, silent: bool = False, status: MessageStatus = "ERROR") -> None:
return True
# return True
if not config.TELEGRAM_BOT_TOKEN or not config.TELEGRAM_ADMIN_ID:
logger.warning("Can't send log messages, because of lack of some informations. Ignore....")
return