diff --git a/bot/src/bot_data/model/user.py b/bot/src/bot_data/model/user.py index 697511a2..e9c3b30b 100644 --- a/bot/src/bot_data/model/user.py +++ b/bot/src/bot_data/model/user.py @@ -178,7 +178,7 @@ class User(TableABC): def profile_picture_url(self, bot: DiscordBotServiceABC) -> str: guild = bot.get_guild(self.server.discord_id) user = guild.get_member(self._discord_id) - return None if user is None else user.avatar.url + return None if user is None or user.avatar is None else user.avatar.url @staticmethod def get_select_all_string() -> str: