Fix compatibility with Quart 0.11

This commit is contained in:
Richard Chien 2020-02-10 12:17:00 +08:00
parent 9b131ca855
commit 932d178c15

View File

@ -78,7 +78,7 @@ def init(config_object: Optional[Any] = None) -> None:
_bot.server_app.before_serving(_start_scheduler)
def _start_scheduler():
async def _start_scheduler():
if scheduler and not scheduler.running:
scheduler.configure(_bot.config.APSCHEDULER_CONFIG)
scheduler.start()