minor logging patches

This commit is contained in:
2026-02-02 08:46:15 +01:00
parent 860659fd8e
commit e8e7c07570
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -34,10 +34,12 @@ class SpielverabredungenClient(Client):
def __get_channel(self) -> ForumChannel:
guild = self.get_guild(self.config_object.guild_id)
assert guild, f'Guild with ID {self.config_object.guild_id} not found'
logging.info('Server name is "%s"', guild.name)
channel = discord.utils.get(guild.channels, id=self.config_object.channel_id)
assert channel, f'Channel with ID {self.config_object.channel_id} not found in guild {self.config_object.guild_id}'
assert isinstance(channel,
ForumChannel), f'Channel with ID {self.config_object.channel_id} is not a forum channel'
logging.info('Channel name is "%s"', channel.name)
return channel
def __check_duplicate_channels(self, channel: ForumChannel, dates: Iterable[datetime.date],