aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/utils/scheduling.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/utils/scheduling.py b/bot/utils/scheduling.py
index 742133f02..9371dcdb7 100644
--- a/bot/utils/scheduling.py
+++ b/bot/utils/scheduling.py
@@ -87,7 +87,7 @@ class Scheduler(metaclass=CogABCMeta):
f"{self.cog_name}: the scheduled task #{task_id} {id(scheduled_task)} "
f"and the done task {id(done_task)} differ."
)
- else:
+ elif not done_task.cancelled():
log.warning(
f"{self.cog_name}: task #{task_id} not found while handling task {id(done_task)}! "
f"A task somehow got unscheduled improperly (i.e. deleted but not cancelled)."