🐛 fix(hermes): 捕获键盘中断并优雅退出

This commit is contained in:
Orion
2026-06-01 11:27:02 +08:00
parent f734a9f1a6
commit 9b8fd9f136
+5 -1
View File
@@ -508,4 +508,8 @@ def main() -> int:
if __name__ == "__main__":
raise SystemExit(main())
try:
raise SystemExit(main())
except KeyboardInterrupt:
print("\n已取消。", file=sys.stderr)
raise SystemExit(130)