Update astrbot/dashboard/routes/plugin.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
kterna
2025-04-08 16:30:36 +08:00
committed by GitHub
parent 59fbd98db3
commit 68885a4bbc
+1 -1
View File
@@ -351,7 +351,7 @@ class PluginRoute(Route):
readme_path = os.path.join(plugin_dir, "README.md")
if not readme_path:
if not os.path.isfile(readme_path):
logger.warning(f"插件 {plugin_name} 没有README文件")
return Response().error(f"插件 {plugin_name} 没有README文件").__dict__