From a4aab09360ec6eb23fa6f369d24ae294ebf09d07 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Thu, 20 Mar 2025 10:56:59 -0400 Subject: [PATCH] Use or instead of two isinstance calls. --- agon/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agon/utils.py b/agon/utils.py index 5fed6db..91208f9 100644 --- a/agon/utils.py +++ b/agon/utils.py @@ -346,7 +346,7 @@ async def send_highscore_message(session: Session, guild: nextcord.Guild, group: agon_logger.error("Channel id %s in guild %s does not exist.", group.channel_id, guild.id) return - if not isinstance(channel, nextcord.TextChannel) or not isinstance(channel, nextcord.Thread): + if not isinstance(channel, nextcord.TextChannel | nextcord.Thread): agon_logger.error( "Channel id %s in guild %s is does not correspond to a TextChannel or Thread.", channel.id, channel.guild.id )