T
Thomas Guettler
Hi,
How can you get the traceback of the inner exception?
try:
try:
import does_not_exit
except ImportError:
raise Exception("something wrong")
except:
...
Background: In Django some exceptions are caught and a new
exception gets raised. Unfortunately the real error is hard
to find. Sometimes I help myself and change (in this example)
ImportError to e.g. IOError and then I can see the real root
of the problem. But maybe there is a way to get the inner
exception and its traceback. This could be displayed in the
debug view.
Thomas
How can you get the traceback of the inner exception?
try:
try:
import does_not_exit
except ImportError:
raise Exception("something wrong")
except:
...
Background: In Django some exceptions are caught and a new
exception gets raised. Unfortunately the real error is hard
to find. Sometimes I help myself and change (in this example)
ImportError to e.g. IOError and then I can see the real root
of the problem. But maybe there is a way to get the inner
exception and its traceback. This could be displayed in the
debug view.
Thomas