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 b559a74 commit 4f57418Copy full SHA for 4f57418
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