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
# -------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.