Skip to content

Commit

Permalink
Избавление от пустых логов при удалении сообщения.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zensonaton committed Dec 20, 2023
1 parent 93ac851 commit 8041c3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/vk/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,8 @@ async def handle_vk_message_flags_change(self, event: LongpollMessageFlagsEdit)
except TelegramForbiddenError:
await TelehooperAPI.delete_group_data(subgroup.parent.chat.id, fully_delete=True, bot=subgroup.parent.bot)
except Exception as error:
logger.error(f"Ошибка при удалении сообщения Telegam пользователя {utils.get_telegram_logging_info(self.user.telegramUser)}:", error)
if error:
logger.error(f"Ошибка при удалении сообщения Telegam пользователя {utils.get_telegram_logging_info(self.user.telegramUser)}:", error)

async def get_list_of_dialogues(self, force_update: bool = False, max_amount: int = 800, skip_ids: list[int] = []) -> list[ServiceDialogue]:
if not force_update and self._cachedDialogues:
Expand Down

0 comments on commit 8041c3c

Please sign in to comment.