mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-16 19:11:00 +00:00
🎨 add store components
This commit is contained in:
@ -7,7 +7,9 @@ from nonebot.log import logger
|
||||
def init():
|
||||
driver = nonebot.get_driver()
|
||||
try:
|
||||
_module = importlib.import_module(f"nonebot_plugin_docs.drivers.{driver.type}")
|
||||
_module = importlib.import_module(
|
||||
f"nonebot_plugin_docs.drivers.{driver.type.split('+')[0]}"
|
||||
)
|
||||
except ImportError:
|
||||
logger.warning(f"Driver {driver.type} not supported")
|
||||
return
|
||||
|
Reference in New Issue
Block a user