Make ldap plugin python3 compatible

Signed-off-by: Olivier Mehani <shtrom+mediagoblin@ssji.net>
This commit is contained in:
Olivier Mehani 2020-05-05 23:11:26 +10:00 committed by Ben Sturmfels
parent 7465326f23
commit 8bb15a5477
No known key found for this signature in database
GPG Key ID: 023C05E2C9C068F0
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ LDAP server.
Set up the LDAP plugin
======================
1. Install the ``python-ldap`` package.
1. Install the ``python3-ldap`` package.
2. Add the following to your MediaGoblin .ini file in the ``[plugins]`` section::

View File

@ -57,7 +57,7 @@ class LDAP(object):
email = self._get_email(v, username)
return username, email
except ldap.LDAPError, e:
except ldap.LDAPError as e:
_log.info(e)
finally: