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
|
||||
try:
|
||||
ldapServer.simple_bind_s(who, password)
|
||||
except NO_SUCH_OBJECT:
|
||||
raise AuthError
|
||||
except INVALID_CREDENTIALS:
|
||||
except:
|
||||
raise AuthError
|
||||
|
||||
def upgrade(self, group):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue