diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-09-09 16:06:49 +0200 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-09-09 16:06:49 +0200 |
commit | f6481dd5fb52b85fbb8c74ad3b3c476e7eba84fb (patch) | |
tree | 7295c155434ccbe8dce912a8c1ae282134177c41 /src | |
parent | 8727b1ffe944c845013548c94e919c6b200c08ea (diff) | |
download | abrt-f6481dd5fb52b85fbb8c74ad3b3c476e7eba84fb.tar.gz abrt-f6481dd5fb52b85fbb8c74ad3b3c476e7eba84fb.tar.xz abrt-f6481dd5fb52b85fbb8c74ad3b3c476e7eba84fb.zip |
PYHOOK: ignore KeyboardInterrupt exception
Diffstat (limited to 'src')
-rw-r--r-- | src/Hooks/abrt_exception_handler.py.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Hooks/abrt_exception_handler.py.in b/src/Hooks/abrt_exception_handler.py.in index 33c4291b..8ac7aa23 100644 --- a/src/Hooks/abrt_exception_handler.py.in +++ b/src/Hooks/abrt_exception_handler.py.in @@ -203,6 +203,9 @@ def handleMyException((etype, value, tb)): # restore original exception handler sys.excepthook = sys.__excepthook__ # pylint: disable-msg=E1101 + # ignore uncaught ctrl-c + if etype == KeyboardInterrupt: + return sys.__excepthook__(etype, value, tb) import os.path from hashlib import md5 |