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

Minor touch-ups relating to traceback facilities.

File:
1 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()
Note: See TracChangeset for help on using the changeset viewer.