mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 00:31:56 -06:00
ipalib.messages: Add "message" property to PublicMessage
In Python 3, the "message" property was removed in favor of calling str(). Add it to PublicMessage, since IPA code depends on it. Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
parent
ff6613972d
commit
0a23afeab2
@ -122,6 +122,11 @@ class PublicMessage(UserWarning):
|
||||
code=self.errno,
|
||||
)
|
||||
|
||||
if six.PY3:
|
||||
@property
|
||||
def message(self):
|
||||
return str(self)
|
||||
|
||||
|
||||
class VersionMissing(PublicMessage):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user