Menu

Commit [r8718]  Maximize  Restore  History

Merged revisions 8717 via svnmerge from

svn+ssh://bugman@.../svn/relax/1.3

........
r8717 | bugman | 2009-02-02 11:30:54 +0100 (Mon, 02 Feb 2009) | 11 lines

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.
........

bugman 2009-02-02

changed /branches/ave_noe
changed /branches/ave_noe/relax_errors.py
/branches/ave_noe
Directory.
/branches/ave_noe/relax_errors.py Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.