summaryrefslogtreecommitdiffstats
path: root/exception.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-06-28 20:31:06 +0000
committerMatt Wilson <msw@redhat.com>2001-06-28 20:31:06 +0000
commita8a977a3bc27032a6592da064062c0a95a06163d (patch)
tree84c82b9e6a79286eb5e465ac8260e8f8d0b7d1b8 /exception.py
parente16620d58485827d3696b60e374568bddfe89fbd (diff)
downloadanaconda-a8a977a3bc27032a6592da064062c0a95a06163d.tar.gz
anaconda-a8a977a3bc27032a6592da064062c0a95a06163d.tar.xz
anaconda-a8a977a3bc27032a6592da064062c0a95a06163d.zip
don't fail if a __repr__ function of some object on the frame that caused the exception caused the exception that made us go into the exception handler in the first place
Diffstat (limited to 'exception.py')
-rw-r--r--exception.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/exception.py b/exception.py
index ad1792695..28610a8c1 100644
--- a/exception.py
+++ b/exception.py
@@ -34,8 +34,11 @@ def dumpException(out, text, tb, id):
trace = trace.tb_next
frame = trace.tb_frame
out.write ("\nLocal variables in innermost frame:\n")
- for (key, value) in frame.f_locals.items():
- out.write ("%s: %s\n" % (key, value))
+ try:
+ for (key, value) in frame.f_locals.items():
+ out.write ("%s: %s\n" % (key, value))
+ except:
+ pass
out.write("\nToDo object:\n")