fix (pomodoro): Missing values in unload.
This commit is contained in:
@@ -213,9 +213,9 @@ class TimerCog(LionCog):
|
|||||||
# Trust initialiser to ignore the guild
|
# Trust initialiser to ignore the guild
|
||||||
return
|
return
|
||||||
|
|
||||||
timers = self.timers.pop(guild.id)
|
timers = self.timers.pop(guild.id, {})
|
||||||
tasks = []
|
tasks = []
|
||||||
for timer in timers:
|
for timer in timers.values():
|
||||||
tasks.append(asyncio.create_task(timer.unload()))
|
tasks.append(asyncio.create_task(timer.unload()))
|
||||||
if tasks:
|
if tasks:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user