Use more general except: in fasLDAP.py
This commit is contained in:
parent
44020c6d25
commit
23bb57d5a8
1 changed files with 1 additions and 3 deletions
|
@ -435,9 +435,7 @@ class Person(object):
|
||||||
who = 'cn=%s,ou=People,dc=fedoraproject,dc=org' % who
|
who = 'cn=%s,ou=People,dc=fedoraproject,dc=org' % who
|
||||||
try:
|
try:
|
||||||
ldapServer.simple_bind_s(who, password)
|
ldapServer.simple_bind_s(who, password)
|
||||||
except NO_SUCH_OBJECT:
|
except:
|
||||||
raise AuthError
|
|
||||||
except INVALID_CREDENTIALS:
|
|
||||||
raise AuthError
|
raise AuthError
|
||||||
|
|
||||||
def upgrade(self, group):
|
def upgrade(self, group):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue