Changeset 3107


Ignore:
Timestamp:
Oct 15, 2010 10:27:03 AM (11 years ago)
Author:
jwatson
Message:

Minor touch-ups relating to traceback facilities.

Location:
coopr.pysp/trunk/coopr/pysp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • coopr.pysp/trunk/coopr/pysp/ef_writer_script.py

    r3104 r3107  
    256256    else:
    257257       gc.enable()
     258
     259    # if an exception is triggered and traceback is enabled, 'ans' won't
     260    # have a value and the return statement from this function will flag
     261    # an error, masking the stack trace that you really want to see.
     262    ans = None
    258263
    259264    if options.profile > 0:
     
    307312           if errmsg is not None:
    308313              print >>sys.stderr, errmsg
    309               sys.exit()
    310314
    311315    gc.enable()
  • coopr.pysp/trunk/coopr/pysp/phinit.py

    r3092 r3107  
    709709    # Run PH - precise invocation depends on whether we want profiling output.
    710710    #
     711
     712    # if an exception is triggered and traceback is enabled, 'ans' won't
     713    # have a value and the return statement from this function will flag
     714    # an error, masking the stack trace that you really want to see.
     715    ans = None       
    711716
    712717    if options.profile > 0:
     
    762767              print "Encountered unhandled exception"
    763768              traceback.print_exc()
    764            sys.exit(0)
    765769
    766770    gc.enable()
Note: See TracChangeset for help on using the changeset viewer.