summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/migration.py
diff options
context:
space:
mode:
authorRobert Kuska <rkuska@redhat.com>2015-08-24 12:40:33 +0200
committerJan Cholasta <jcholast@redhat.com>2015-09-30 10:51:36 +0200
commit01da4a8de3ed8651cc95df6125751e1603dbd14e (patch)
tree823856bad461808163b3fc05c54e0d87d26dd381 /ipalib/plugins/migration.py
parent34e6c3ea05b23f4a5fe6fb6aaadd394967f31340 (diff)
downloadfreeipa-01da4a8de3ed8651cc95df6125751e1603dbd14e.tar.gz
freeipa-01da4a8de3ed8651cc95df6125751e1603dbd14e.tar.xz
freeipa-01da4a8de3ed8651cc95df6125751e1603dbd14e.zip
Replace StandardError with Exception
StandardError was removed in Python3 and instead Exception should be used. Signed-off-by: Robert Kuska <rkuska@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipalib/plugins/migration.py')
-rw-r--r--ipalib/plugins/migration.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/plugins/migration.py b/ipalib/plugins/migration.py
index 3e3c0fe19..59c49fae5 100644
--- a/ipalib/plugins/migration.py
+++ b/ipalib/plugins/migration.py
@@ -31,7 +31,7 @@ from ipalib.plugins.user import NO_UPG_MAGIC
if api.env.in_server and api.env.context in ['lite', 'server']:
try:
from ipaserver.plugins.ldap2 import ldap2
- except StandardError as e:
+ except Exception as e:
raise e
from ipalib import _
from ipapython.dn import DN
@@ -922,7 +922,7 @@ can use their Kerberos accounts.''')
ds_base_dn = DN(entries[0]['namingcontexts'][0])
assert isinstance(ds_base_dn, DN)
except (IndexError, KeyError) as e:
- raise StandardError(str(e))
+ raise Exception(str(e))
# migrate!
(migrated, failed) = self.migrate(