mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-05 19:36:43 +08:00
fixup! use deprecation marker for legacy db
fix test
This commit is contained in:
parent
b34f93b313
commit
dbda95c0c9
@ -60,7 +60,7 @@ async def use_legacy_config(app: App):
|
||||
import aiofiles
|
||||
from nonebot_bison.config.config_legacy import config, get_config_path
|
||||
|
||||
async with aiofiles.open(get_config_path(), "w") as f:
|
||||
async with aiofiles.open(get_config_path()[0], "w") as f:
|
||||
await f.write("{}")
|
||||
|
||||
config._do_init()
|
||||
|
Loading…
x
Reference in New Issue
Block a user