From 1dcdbe3cf03ff16b3ff2e2e6d572e0b3c72c18c0 Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 19 Apr 2026 15:43:32 +0200 Subject: refactor: simplify cogs, reduce complexity - Remove unused imports and dead code - Cleaner error handling - Reduce cognitive complexity --- cogs/cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cogs/cron.py') diff --git a/cogs/cron.py b/cogs/cron.py index 6e5020e..da8127b 100644 --- a/cogs/cron.py +++ b/cogs/cron.py @@ -92,7 +92,7 @@ class Cron(commands.Cog): channel = self.bot.get_channel(channel_id) if not channel: - logger.warning(f"Channel {channel_id} not found for task {task['id']}") + logger.warning(f"Channel {channel_id} not found for task ID: {task.get('id')}") return logger.info(f"Found channel {channel} (type: {type(channel).__name__})") -- cgit v1.2.3