diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-01-05 11:34:28 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-01-05 11:34:28 +0100 |
commit | 2c575daafd29ef16d2e293ba73232a24165b45d0 (patch) | |
tree | 6b9a579d0018f31dd952787452dc6f32b5d565aa /src/hooks | |
parent | 423d37c9ddc1dd163af5943aa3e4974b9a73e302 (diff) | |
download | abrt-2c575daafd29ef16d2e293ba73232a24165b45d0.tar.gz abrt-2c575daafd29ef16d2e293ba73232a24165b45d0.tar.xz abrt-2c575daafd29ef16d2e293ba73232a24165b45d0.zip |
PyHook: ignore SystemExit exception rhbz#636913
- SystemExit is not an error, so ABRT should ignore it
- see http://docs.python.org/library/exceptions.html#exceptions.SystemExit
for more details
Diffstat (limited to 'src/hooks')
-rw-r--r-- | src/hooks/abrt_exception_handler.py.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hooks/abrt_exception_handler.py.in b/src/hooks/abrt_exception_handler.py.in index dd6fbaed..6081d639 100644 --- a/src/hooks/abrt_exception_handler.py.in +++ b/src/hooks/abrt_exception_handler.py.in @@ -61,8 +61,10 @@ def handleMyException((etype, value, tb)): # restore original exception handler sys.excepthook = sys.__excepthook__ # pylint: disable-msg=E1101 - # ignore uncaught ctrl-c - if etype == KeyboardInterrupt: + # ignore + # - uncaught ctrl-c + # - SystemExit rhbz#636913 -> this exception is not an error + if etype in [KeyboardInterrupt, SystemExit]: return sys.__excepthook__(etype, value, tb) try: |