diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-08-20 10:15:57 -0400 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2009-08-20 15:16:52 -0600 |
commit | dacfddfdc8be7411abef5bd1c1107907f545dc6f (patch) | |
tree | c7186cc65bff889fd2d6728480b767d6f3da4e97 /ipalib | |
parent | d9c54cd83e8c676e34497fa135786a626d5d1fc7 (diff) | |
download | freeipa-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.py | 10 |
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): |