From 25355a2c184327c4b612a59f8526411fceb89af5 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Thu, 21 Aug 2014 21:50:33 +0100 Subject: [sosreport] handle KeyboardInterrupt while importing sos Fixes #376 Signed-off-by: Bryn M. Reeves --- sosreport | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sosreport b/sosreport index b8ad7188..4b354d3b 100755 --- a/sosreport +++ b/sosreport @@ -15,8 +15,11 @@ """ sos entry point. """ -from sos.sosreport import main import sys +try: + from sos.sosreport import main +except KeyboardInterrupt: + raise SystemExit() if __name__ == '__main__': main(sys.argv[1:]) -- cgit