diff options
Diffstat (limited to 'install/migration/migration.py')
-rw-r--r-- | install/migration/migration.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/install/migration/migration.py b/install/migration/migration.py index 8c440175a..e1823e151 100644 --- a/install/migration/migration.py +++ b/install/migration/migration.py @@ -52,12 +52,12 @@ def bind(ldap_uri, base_dn, username, password): try: conn = IPAdmin(ldap_uri=ldap_uri) conn.do_simple_bind(bind_dn, password) - except (errors.ACIError, errors.DatabaseError, errors.NotFound), e: + except (errors.ACIError, errors.DatabaseError, errors.NotFound) as e: root_logger.error( 'migration invalid credentials for %s: %s' % (bind_dn, e)) raise IOError( errno.EPERM, 'Invalid LDAP credentials for user %s' % username) - except Exception, e: + except Exception as e: root_logger.error('migration bind failed: %s' % e) raise IOError(errno.EIO, 'Bind error') finally: |