Author: reinhard Date: 2009-04-03 05:19:49 -0500 (Fri, 03 Apr 2009) New Revision: 9914
Modified: trunk/gnue-common/src/base/errors.py Log: In Python 2.5, builtin Exception overwrites the instance variable "message" on __init__, so we have to set it *after* __init__. Modified: trunk/gnue-common/src/base/errors.py =================================================================== --- trunk/gnue-common/src/base/errors.py 2009-03-17 22:14:19 UTC (rev 9913) +++ trunk/gnue-common/src/base/errors.py 2009-04-03 10:19:49 UTC (rev 9914) @@ -58,14 +58,14 @@ """ def __init__(self, message, group='system'): + exceptions.Exception.__init__(self, o(message)) + self.message = message self.group = group self.name = None self.detail = None - exceptions.Exception.__init__(self, o(message)) - # ------------------------------------------------------------------------- # Return the name of the exception # ------------------------------------------------------------------------- _______________________________________________ commit-gnue mailing list commit-gnue@gnu.org http://lists.gnu.org/mailman/listinfo/commit-gnue