[kernel-switcher] catch KeyboardInterrupt and don't throw traceback to user

This commit is contained in:
Fabio Erculiani
2011-08-25 09:52:17 +02:00
parent 1d29a15e05
commit 7ead04fa01

View File

@@ -257,5 +257,8 @@ if not argv:
cmd, args = argv[0], argv[1:]
func = args_map.get(cmd, args_map.get("__fallback__"))
rc = func(args)
try:
rc = func(args)
except KeyboardInterrupt:
raise SystemExit(1)
raise SystemExit(rc)