Menu

Commit [r8717]  Maximize  Restore  History

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 /1.3/relax_errors.py
/1.3/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.