[sagenb] 40/179: NameError: global name 'LDAPError' is not defined
felix salfelder
felix-guest at moszumanska.debian.org
Tue May 6 12:05:08 UTC 2014
This is an automated email from the git hooks/post-receive script.
felix-guest pushed a commit to branch master
in repository sagenb.
commit 27839047bbacf7f2885be8f75b8b134b1f4ebd12
Author: Robin Martinjak <rob at rmartinjak.de>
Date: Mon Nov 26 09:25:15 2012 +0100
NameError: global name 'LDAPError' is not defined
---
sagenb/notebook/auth.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sagenb/notebook/auth.py b/sagenb/notebook/auth.py
index 00d7865..06dfcf2 100644
--- a/sagenb/notebook/auth.py
+++ b/sagenb/notebook/auth.py
@@ -83,7 +83,7 @@ class LdapAuth(AuthMethod):
timeout=self._conf['ldap_timeout'],
sizelimit=self._conf['ldap_sizelimit']
)
- except LDAPError, e:
+ except ldap.LDAPError, e:
print 'LDAP Error: %s' % str(e)
return []
finally:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git
More information about the debian-science-commits
mailing list