summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2009-08-20 10:15:57 -0400
committerJason Gerard DeRose <jderose@redhat.com>2009-08-20 15:16:52 -0600
commitdacfddfdc8be7411abef5bd1c1107907f545dc6f (patch)
treec7186cc65bff889fd2d6728480b767d6f3da4e97 /ipalib
parentd9c54cd83e8c676e34497fa135786a626d5d1fc7 (diff)
downloadfreeipa-dacfddfdc8be7411abef5bd1c1107907f545dc6f.tar.gz
freeipa-dacfddfdc8be7411abef5bd1c1107907f545dc6f.tar.xz
freeipa-dacfddfdc8be7411abef5bd1c1107907f545dc6f.zip
Remove Python 2.6 BaseException.message deprecation warning
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/errors.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/ipalib/errors.py b/ipalib/errors.py
index 2edefa74..ad5f584f 100644
--- a/ipalib/errors.py
+++ b/ipalib/errors.py
@@ -111,13 +111,13 @@ class PrivateError(StandardError):
format = ''
def __init__(self, **kw):
- self.message = self.format % kw
+ self.msg = self.format % kw
for (key, value) in kw.iteritems():
assert not hasattr(self, key), 'conflicting kwarg %s.%s = %r' % (
self.__class__.__name__, key, value,
)
setattr(self, key, value)
- StandardError.__init__(self, self.message)
+ StandardError.__init__(self, self.msg)
class SubprocessError(PrivateError):
@@ -258,7 +258,7 @@ class PublicError(StandardError):
)
self.format = format
self.forwarded = False
- self.message = self.format % kw
+ self.msg = self.format % kw
self.strerror = ugettext(self.format) % kw
else:
if type(message) is not unicode:
@@ -266,14 +266,14 @@ class PublicError(StandardError):
TYPE_ERROR % ('message', unicode, message, type(message))
)
self.forwarded = True
- self.message = message
+ self.msg = message
self.strerror = message
for (key, value) in kw.iteritems():
assert not hasattr(self, key), 'conflicting kwarg %s.%s = %r' % (
name, key, value,
)
setattr(self, key, value)
- StandardError.__init__(self, self.message)
+ StandardError.__init__(self, self.msg)
class VersionError(PublicError):