没啥用,妈的兼容性

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:
if not check_for_package(installed_plugin.module_name):
nonebot.logger.error(
f"插件 {installed_plugin.module_name} 仍在加载列表中但未安装"
f"加载列表中的 {installed_plugin.module_name} 插件无法安装,可能是是未找到插件"
)
else:
nonebot.load_plugin(installed_plugin.module_name)

View File

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