没啥用,妈的兼容性

This commit is contained in:
EillesWan 2024-12-29 21:22:08 +08:00
parent cc15f60fd9
commit 9234e6d392
2 changed files with 11 additions and 8 deletions

View File

@ -27,7 +27,7 @@ async def load_plugins():
for installed_plugin in installed_plugins: for installed_plugin in installed_plugins:
if not check_for_package(installed_plugin.module_name): if not check_for_package(installed_plugin.module_name):
nonebot.logger.error( nonebot.logger.error(
f"插件 {installed_plugin.module_name} 仍在加载列表中但未安装" f"加载列表中的 {installed_plugin.module_name} 插件无法安装,可能是是未找到插件"
) )
else: else:
nonebot.load_plugin(installed_plugin.module_name) nonebot.load_plugin(installed_plugin.module_name)

View File

@ -783,7 +783,7 @@ async def _(
else result.options[arg].args else result.options[arg].args
) )
if ( if (
(_vlu := result.options[arg].value) is None ((_vlu := result.options[arg].value) is None)
or isinstance(_vlu, EllipsisType) or isinstance(_vlu, EllipsisType)
) )
else _vlu else _vlu
@ -925,13 +925,16 @@ async def _(
await linglun_convert.send(UniMessage.text(ulang.get("convert.start"))) await linglun_convert.send(UniMessage.text(ulang.get("convert.start")))
try: progress_bar_style = (
Musicreater.ProgressBarStyle(**_args["progress-bar"])
progress_bar_style = ( if (
Musicreater.ProgressBarStyle(**_args["progress-bar"]) _args["progress-bar"]
if _args["progress-bar"] and ("base_s" in _args["progress-bar"] and _args["progress-bar"]["base_s"])
else None
) )
else None
)
try:
all_files: dict[str, dict[str, dict[str, int | tuple | str | list]]] = {} all_files: dict[str, dict[str, dict[str, int | tuple | str | list]]] = {}