diff options
| author | salmonik <raisersoft@proton.me> | 2026-04-19 15:43:32 +0200 |
|---|---|---|
| committer | salmonik <raisersoft@proton.me> | 2026-04-19 15:43:32 +0200 |
| commit | 1dcdbe3cf03ff16b3ff2e2e6d572e0b3c72c18c0 (patch) | |
| tree | f11dc45777d8b3c8ff0e2ca16be83f85b272bd48 /cogs/cron.py | |
| parent | test: add cron tests + improve existing tests (diff) | |
| download | senator-sperma-1dcdbe3cf03ff16b3ff2e2e6d572e0b3c72c18c0.tar.gz senator-sperma-1dcdbe3cf03ff16b3ff2e2e6d572e0b3c72c18c0.zip | |
refactor: simplify cogs, reduce complexity
- Remove unused imports and dead code
- Cleaner error handling
- Reduce cognitive complexity
Diffstat (limited to 'cogs/cron.py')
| -rw-r--r-- | cogs/cron.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): | |||
| 92 | 92 | ||
| 93 | channel = self.bot.get_channel(channel_id) | 93 | channel = self.bot.get_channel(channel_id) |
| 94 | if not channel: | 94 | if not channel: |
| 95 | logger.warning(f"Channel {channel_id} not found for task {task['id']}") | 95 | logger.warning(f"Channel {channel_id} not found for task ID: {task.get('id')}") |
| 96 | return | 96 | return |
| 97 | 97 | ||
| 98 | logger.info(f"Found channel {channel} (type: {type(channel).__name__})") | 98 | logger.info(f"Found channel {channel} (type: {type(channel).__name__})") |
