From 282ae3895e638277e98f3e5b2a7a7ae654eb74c8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 24 Aug 2025 13:46:32 +0000 Subject: [PATCH] chore(deps): auto fix by pre-commit hooks --- app/models/notification.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/models/notification.py b/app/models/notification.py index dd7aaa9..5e544fd 100644 --- a/app/models/notification.py +++ b/app/models/notification.py @@ -118,9 +118,12 @@ class ChannelMessageBase(NotificationDetail): channel_type: "ChannelType", ) -> Self: try: - avatar_url = getattr(user, 'avatar_url', 'https://lazer-data.g0v0.top/default.jpg') or 'https://lazer-data.g0v0.top/default.jpg' + avatar_url = ( + getattr(user, "avatar_url", "https://lazer-data.g0v0.top/default.jpg") + or "https://lazer-data.g0v0.top/default.jpg" + ) except Exception: - avatar_url = 'https://lazer-data.g0v0.top/default.jpg' + avatar_url = "https://lazer-data.g0v0.top/default.jpg" instance = cls( title=truncate(message.content, CONTENT_TRUNCATE), type=channel_type.value.lower(),