We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4500dd0 commit 771346cCopy full SHA for 771346c
backend/plugin/tools.py
@@ -65,6 +65,11 @@ def get_plugin_models() -> list[type]:
65
for plugin in get_plugins():
66
# 导入插件的模型模块
67
module_path = f'backend.plugin.{plugin}.model'
68
+
69
+ module_file = os.path.join(PLUGIN_DIR, plugin, "model.py")
70
+ if not os.path.exists(module_file): # 先检查文件是否存在
71
+ continue
72
73
module = import_module_cached(module_path)
74
75
# 获取模块中的所有类
0 commit comments