mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-07 20:33:01 +08:00
fix #66
This commit is contained in:
parent
2e27f4eddb
commit
cbdb73b2e3
@ -129,7 +129,7 @@ def register_router_fastapi(driver: Driver, socketio):
|
|||||||
|
|
||||||
def init():
|
def init():
|
||||||
driver = get_driver()
|
driver = get_driver()
|
||||||
if driver.type == "fastapi":
|
if "fastapi" in driver.type:
|
||||||
assert isinstance(driver, Driver)
|
assert isinstance(driver, Driver)
|
||||||
register_router_fastapi(driver, socket_app)
|
register_router_fastapi(driver, socket_app)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user