When indentation error is in an evaluated string or imported source,
there will be a traceback. Don't try to use that.
---
src/hooks/abrt_exception_handler.py.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/hooks/abrt_exception_handler.py.in
b/src/hooks/abrt_exception_handler.py.in
index 6a50552..20132bd 100644
--- a/src/hooks/abrt_exception_handler.py.in
+++ b/src/hooks/abrt_exception_handler.py.in
@@ -119,7 +119,7 @@ def handleMyException((etype, value, tb)):
elist = traceback.format_exception(etype, value, tb)
- if tb != None:
+ if tb != None and etype != IndentationError:
tblast = traceback.extract_tb(tb, limit=None)
if len(tblast):
tblast = tblast[len(tblast)-1]
--
1.7.6.4