mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
py3: remove Exception.message appearances
Exception.message is removed in Python3 https://pagure.io/freeipa/issue/4985 https://pagure.io/freeipa/issue/6874 Reviewed-By: Pavel Vomacka <pvomacka@redhat.com>
This commit is contained in:
committed by
Pavel Vomacka
parent
7a86ff5d9b
commit
e6a9de8a2e
@@ -180,8 +180,8 @@ def main():
|
||||
principal = krb_utils.get_principal()
|
||||
except errors.CCacheError as e:
|
||||
raise ScriptError(
|
||||
"Must have Kerberos credentials to setup AD trusts on server: %s"
|
||||
% e.message)
|
||||
"Must have Kerberos credentials to setup AD trusts on server: "
|
||||
"{err}".format(err=e))
|
||||
|
||||
try:
|
||||
api.Backend.ldap2.connect()
|
||||
|
||||
@@ -1447,7 +1447,7 @@ def set_DNA_range(hostname, range, realm, dirman_passwd, next_range=False,
|
||||
entries = repl.conn.get_entries(dn, repl.conn.SCOPE_ONELEVEL,
|
||||
"(objectclass=ipaDomainIDRange)")
|
||||
except errors.NotFound as e:
|
||||
sys.exit('Unable to load IPA ranges: %s' % e.message)
|
||||
sys.exit('Unable to load IPA ranges: {err}'.format(err=e))
|
||||
|
||||
for ent in entries:
|
||||
entry_start = int(ent.single_value['ipabaseid'])
|
||||
|
||||
Reference in New Issue
Block a user