diff options
| author | 2021-03-08 19:33:41 +0100 | |
|---|---|---|
| committer | 2021-03-08 19:33:41 +0100 | |
| commit | 6c89267f2ce07a3a55dff933f5d76aba2a695f48 (patch) | |
| tree | c5fc4137345dcd55433adb2bcbb81beffe4a0ed4 | |
| parent | Merge pull request #462 from AtieP/master (diff) | |
Properly rename countdown_task -> notification_task
The old name was still in use in the cog_unload, making it fail
| -rw-r--r-- | bot/exts/christmas/advent_of_code/_cog.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/bot/exts/christmas/advent_of_code/_cog.py b/bot/exts/christmas/advent_of_code/_cog.py index 466edd48..2203bf00 100644 --- a/bot/exts/christmas/advent_of_code/_cog.py +++ b/bot/exts/christmas/advent_of_code/_cog.py @@ -36,7 +36,7 @@ class AdventOfCode(commands.Cog):          self.about_aoc_filepath = Path("./bot/resources/advent_of_code/about.json")          self.cached_about_aoc = self._build_about_embed() -        self.countdown_task = None +        self.notification_task = None          self.status_task = None          notification_coro = _helpers.new_puzzle_notification(self.bot) @@ -268,7 +268,7 @@ class AdventOfCode(commands.Cog):      def cog_unload(self) -> None:          """Cancel season-related tasks on cog unload."""          log.debug("Unloading the cog and canceling the background task.") -        self.countdown_task.cancel() +        self.notification_task.cancel()          self.status_task.cancel()      def _build_about_embed(self) -> discord.Embed: | 
