commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r9914 - trunk/gnue-common/src/base


From: reinhard
Subject: [gnue] r9914 - trunk/gnue-common/src/base
Date: Fri, 3 Apr 2009 05:19:49 -0500 (CDT)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]