diff options
author | Matt Wilson <msw@redhat.com> | 2001-06-28 20:31:06 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-06-28 20:31:06 +0000 |
commit | a8a977a3bc27032a6592da064062c0a95a06163d (patch) | |
tree | 84c82b9e6a79286eb5e465ac8260e8f8d0b7d1b8 /exception.py | |
parent | e16620d58485827d3696b60e374568bddfe89fbd (diff) | |
download | anaconda-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.py | 7 |
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") |