From 932d178c15d45c344406785ac48b8d51f7cb7abd Mon Sep 17 00:00:00 2001 From: Richard Chien Date: Mon, 10 Feb 2020 12:17:00 +0800 Subject: [PATCH] Fix compatibility with Quart 0.11 --- nonebot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nonebot/__init__.py b/nonebot/__init__.py index 4b606b8f..949c0f5f 100644 --- a/nonebot/__init__.py +++ b/nonebot/__init__.py @@ -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()