From f6481dd5fb52b85fbb8c74ad3b3c476e7eba84fb Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Wed, 9 Sep 2009 16:06:49 +0200 Subject: PYHOOK: ignore KeyboardInterrupt exception --- src/Hooks/abrt_exception_handler.py.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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 -- cgit