diff --git a/VERSION b/VERSION index 0f5dfbe..5827d9b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.24.1 +2.24.2 diff --git a/tasks/draft_monitor.py b/tasks/draft_monitor.py index 3473734..02a445f 100644 --- a/tasks/draft_monitor.py +++ b/tasks/draft_monitor.py @@ -389,6 +389,11 @@ class DraftMonitorTask: """ try: config = get_config() + guild = self.bot.get_guild(config.guild_id) + + if not guild: + self.logger.error("Could not find guild for on-clock announcement") + return # Refresh draft data to get updated currentpick and deadline updated_draft_data = await draft_service.get_draft_data()