catching all tracebacks

T

Timothy Smith

iw ant to use a singel try except statment with my main app loop in the
middle and catch all tracebacks and email them to myself as a bug
report. however it seems a little more tricky then i thought

try:
Main.Main()
except Exception, err_o:
print err_o.__class__.__name__, '//', err_o, '//', err_o.args

that was suggested to me however it doesn't catch the errors i made in
the program, it just spits out a traceback.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top