fix: 测试库按进程隔离,主题在无法写存储时仍能打开
This commit is contained in:
@@ -8,7 +8,7 @@ from pathlib import Path
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "backend"))
|
||||
|
||||
from euniv import EunivClient
|
||||
from euniv.client import EunivClient, ManualJigsaw
|
||||
|
||||
|
||||
def main() -> int:
|
||||
@@ -41,6 +41,9 @@ def main() -> int:
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
raise SystemExit(main())
|
||||
except ManualJigsaw:
|
||||
print("需要人工完成拼图", file=sys.stderr)
|
||||
raise SystemExit(1)
|
||||
except Exception as exc:
|
||||
print(str(exc), file=sys.stderr)
|
||||
raise SystemExit(1)
|
||||
|
||||
Reference in New Issue
Block a user