On 08/24/2010 12:45 PM, Roman Rakus wrote:
Signed-off-by: Roman Rakus<rrakus(a)redhat.com>
---
src/hooks/abrt_exception_handler.py.in | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/src/hooks/abrt_exception_handler.py.in
b/src/hooks/abrt_exception_handler.py.in
index dd6fbae..46642a7 100644
--- a/src/hooks/abrt_exception_handler.py.in
+++ b/src/hooks/abrt_exception_handler.py.in
@@ -91,12 +91,6 @@ def handleMyException((etype, value, tb)):
syslog.syslog("abrt: detected unhandled Python exception")
raise Exception
syslog.syslog("abrt: detected unhandled Python exception in %s" %
sys.argv[0])
- if sys.argv[0][0] != "/":
- # Relative path - can't reliably determine package
- # this script belongs to - abort dumping
- # TODO: check abrt.conf and abort only if
- # ProcessUnpackaged = no?
- raise Exception
elist = traceback.format_exception(etype, value, tb)
tblast = traceback.extract_tb(tb, limit=None)
I'm not sure about the
code further. However, when I delete the lines
the python hook works as expected and reflects ProcessUnpackaged option.
I guess, the cleanest way is to really check ProcessUnpackaged option.
RR