catching all tracebacks

Discussion in 'Python' started by Timothy Smith, Oct 6, 2005.

  1. 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.
     
    Timothy Smith, Oct 6, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?ISO-8859-1?Q?Mike_M=FCller?=

    tracebacks in embedded python

    =?ISO-8859-1?Q?Mike_M=FCller?=, Jul 9, 2003, in forum: Python
    Replies:
    1
    Views:
    343
    Thomas Heller
    Jul 9, 2003
  2. Maxwell Hammer

    Help with thread related tracebacks

    Maxwell Hammer, Jun 16, 2005, in forum: Python
    Replies:
    0
    Views:
    317
    Maxwell Hammer
    Jun 16, 2005
  3. Maxwell Hammer
    Replies:
    7
    Views:
    659
    Peter Hansen
    Jun 18, 2005
  4. Michael P. Soulier

    getting tracebacks from traceback objects

    Michael P. Soulier, Jun 24, 2005, in forum: Python
    Replies:
    1
    Views:
    389
    Kent Johnson
    Jun 24, 2005
  5. Roy Smith

    Getting terse tracebacks?

    Roy Smith, Jan 1, 2006, in forum: Python
    Replies:
    1
    Views:
    278
Loading...

Share This Page