Ignore:
Timestamp:
Oct 13, 2010 1:52:13 PM (9 years ago)
Author:
jwatson
Message:

Added --traceback option to runph, in order to dump the full stack trace when an exception is thrown.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pysp/trunk/scripts/runph

    r2261 r3088  
    4848import coopr.pysp.phinit
    4949
    50 try:
    51     coopr.pysp.phinit.run()
    52 except ValueError, str:
    53     print "VALUE ERROR:"
    54     print str
    55 except IOError, str:
    56     print "IO ERROR:"
    57     print str
    58 except pyutilib.common.ApplicationError, str:
    59     print "APPLICATION ERROR:"
    60     print str
    61 except RuntimeError, str:
    62     print "RUN-TIME ERROR:"   
    63     print str       
    64 except:
    65    print "Encountered unhandled exception"
    66    traceback.print_exc()
     50coopr.pysp.phinit.run()
     51
Note: See TracChangeset for help on using the changeset viewer.