Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
fix: Correctly reschedule tasks when they return a new trigger (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
silasary authored Sep 14, 2022
1 parent 786db12 commit b30a494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion naff/models/naff/tasks/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async def __call__(self) -> None:
val = self.callback()

if isinstance(val, BaseTrigger):
self.trigger = val
self.reschedule(val)
except Exception as e:
self.on_error(e)

Expand Down

0 comments on commit b30a494

Please sign in to comment.