mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-01-19 01:18:19 +08:00
Fix compatibility with Quart 0.11
This commit is contained in:
parent
9b131ca855
commit
932d178c15
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user