aboutsummaryrefslogtreecommitdiffstats
path: root/sosreport
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-08-21 21:50:33 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-08-21 21:53:25 +0100
commit25355a2c184327c4b612a59f8526411fceb89af5 (patch)
tree43d88aee13f1278f4c8b8fd7950d2f45c3bd0e4c /sosreport
parent7cdc1deabaeae226b498da74e1f60302f8a68a26 (diff)
downloadsos-25355a2c184327c4b612a59f8526411fceb89af5.tar.gz
[sosreport] handle KeyboardInterrupt while importing sos
Fixes #376 Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'sosreport')
-rwxr-xr-xsosreport5
1 files changed, 4 insertions, 1 deletions
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:])