From 8bb15a5477ca8175d71de9740acbee99ca1946ae Mon Sep 17 00:00:00 2001 From: Olivier Mehani Date: Tue, 5 May 2020 23:11:26 +1000 Subject: Make ldap plugin python3 compatible Signed-off-by: Olivier Mehani --- mediagoblin/plugins/ldap/README.rst | 2 +- mediagoblin/plugins/ldap/tools.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'mediagoblin') diff --git a/mediagoblin/plugins/ldap/README.rst b/mediagoblin/plugins/ldap/README.rst index 049b5c4d..fe9a96f5 100644 --- a/mediagoblin/plugins/ldap/README.rst +++ b/mediagoblin/plugins/ldap/README.rst @@ -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:: diff --git a/mediagoblin/plugins/ldap/tools.py b/mediagoblin/plugins/ldap/tools.py index 2be2dcd7..9d6d8b2a 100644 --- a/mediagoblin/plugins/ldap/tools.py +++ b/mediagoblin/plugins/ldap/tools.py @@ -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: -- cgit v1.2.3