mailr8717 - /1.3/relax_errors.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on February 02, 2009 - 11:30:
Author: bugman
Date: Mon Feb  2 11:30:54 2009
New Revision: 8717

URL: http://svn.gna.org/viewcvs/relax?rev=8717&view=rev
Log:
Fixed an annoying bug in the RelaxError debugging mode.

The problem here is that the relax state was being saved in the __init__() 
methods if in debug mode.
The result was that in try statements which catch and allow for RelaxErrors, 
the relax state was
being saved even though the error message and exception was suppressed.  The 
fix was to shift the
state saving code into the __str__() method.

A side effect of this change is a simplification of all the RelaxError 
classes as the debug code is
no longer duplicated in each class.


Modified:
    1.3/relax_errors.py

[This mail would be too long, it was shortened to contain the URLs only.]

Modified: 1.3/relax_errors.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/relax_errors.py?rev=8717&r1=8716&r2=8717&view=diff




Related Messages


Powered by MHonArc, Updated Mon Feb 02 11:40:01 2009