diff options
author | Karel Klic <kklic@redhat.com> | 2011-06-13 16:46:42 +0200 |
---|---|---|
committer | Karel Klic <kklic@redhat.com> | 2011-06-13 16:46:42 +0200 |
commit | 8edc80c6a08ef30d02cad35b736c0c7dcb62a7f3 (patch) | |
tree | b747ef4d0e24ad4cf2980f0681a93408011dbcd6 /src/hooks/abrt_exception_handler.py.in | |
parent | 6dcdb4a5cb3ed68eb7d72cc65e58055d1e4f7c65 (diff) | |
parent | 16f9e8da051b87164b77bf9a42a61ae9a97fb5fd (diff) | |
download | abrt-8edc80c6a08ef30d02cad35b736c0c7dcb62a7f3.tar.gz abrt-8edc80c6a08ef30d02cad35b736c0c7dcb62a7f3.tar.xz abrt-8edc80c6a08ef30d02cad35b736c0c7dcb62a7f3.zip |
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'src/hooks/abrt_exception_handler.py.in')
-rw-r--r-- | src/hooks/abrt_exception_handler.py.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hooks/abrt_exception_handler.py.in b/src/hooks/abrt_exception_handler.py.in index d12968e1..5b45fcd4 100644 --- a/src/hooks/abrt_exception_handler.py.in +++ b/src/hooks/abrt_exception_handler.py.in @@ -24,7 +24,6 @@ Module for the ABRT exception handling hook import sys import os -import syslog import socket def write_dump(pid, tb): @@ -48,6 +47,7 @@ def write_dump(pid, tb): s.sendall("DONE\0") s.close() except Exception, ex: + import syslog syslog.syslog("can't communicate with ABRT daemon, is it running? %s", str(ex)) def handleMyException((etype, value, tb)): @@ -67,10 +67,10 @@ def handleMyException((etype, value, tb)): return sys.__excepthook__(etype, value, tb) try: - import os import os.path import traceback import errno + import syslog # EPIPE is not a crash, it happens all the time # Testcase: script.py | true, where script.py is: |