mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-07 20:33:01 +08:00
use another way to check fastapi
This commit is contained in:
parent
cbdb73b2e3
commit
12b8111934
@ -129,8 +129,7 @@ def register_router_fastapi(driver: Driver, socketio):
|
|||||||
|
|
||||||
def init():
|
def init():
|
||||||
driver = get_driver()
|
driver = get_driver()
|
||||||
if "fastapi" in driver.type:
|
if isinstance(driver, Driver):
|
||||||
assert isinstance(driver, Driver)
|
|
||||||
register_router_fastapi(driver, socket_app)
|
register_router_fastapi(driver, socket_app)
|
||||||
else:
|
else:
|
||||||
logger.warning(f"Driver {driver.type} not supported")
|
logger.warning(f"Driver {driver.type} not supported")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user