From 9b8fd9f13661ceec9f02150f6e6308e5ea3db7f0 Mon Sep 17 00:00:00 2001 From: Orion Date: Mon, 1 Jun 2026 11:27:02 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(hermes):=20=E6=8D=95?= =?UTF-8?q?=E8=8E=B7=E9=94=AE=E7=9B=98=E4=B8=AD=E6=96=AD=E5=B9=B6=E4=BC=98?= =?UTF-8?q?=E9=9B=85=E9=80=80=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hermes/switch_conf.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hermes/switch_conf.py b/hermes/switch_conf.py index fe36ffd..6cafc2e 100755 --- a/hermes/switch_conf.py +++ b/hermes/switch_conf.py @@ -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)