From aa456d3e8de8a30599d51c2fa9f7585a7bd0afd9 Mon Sep 17 00:00:00 2001 From: mihalin Date: Thu, 30 Jun 2022 01:45:44 +0300 Subject: [PATCH] fix --- server/custom.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server/custom.py b/server/custom.py index 674e9f0..298e551 100644 --- a/server/custom.py +++ b/server/custom.py @@ -133,6 +133,7 @@ async def handle_user_message(message: types.Message, super_chat_id: int, bot): return SendMessage(chat_id=message.chat.id, text=_("Не удаётся связаться с владельцем бота")) except exceptions.MessageToForwardNotFound: _logger.error("(exception) Message to forward not found") + return bot.incoming_messages_count = F("incoming_messages_count") + 1 await bot.save(update_fields=["incoming_messages_count"])