diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2014-08-21 21:50:33 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2014-08-21 21:53:25 +0100 |
commit | 25355a2c184327c4b612a59f8526411fceb89af5 (patch) | |
tree | 43d88aee13f1278f4c8b8fd7950d2f45c3bd0e4c /sosreport | |
parent | 7cdc1deabaeae226b498da74e1f60302f8a68a26 (diff) | |
download | sos-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-x | sosreport | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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:]) |