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 d64f7c2 commit 540ad3bCopy full SHA for 540ad3b
backend/app/__init__.py
@@ -25,9 +25,11 @@ def get_app_models():
25
try:
26
module_path = f'backend.app.{app}.model'
27
module = import_module_cached(module_path)
28
- except Exception as e:
+ except ModuleNotFoundError as e:
29
log.warning(f'应用 {app} 中不包含 model 相关配置: {e}')
30
continue
31
+ except Exception as e:
32
+ raise e
33
34
for name, obj in inspect.getmembers(module):
35
if inspect.isclass(obj):
0 commit comments