Make ldap plugin python3 compatible
[mediagoblin.git] / mediagoblin / plugins / ldap / tools.py
index 2be2dcd74aaf3f283144aae82b48c6244e90a930..9d6d8b2aaa56276dc88be55cf010cbe3e6bf5c44 100644 (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: