Use more general except: in fasLDAP.py

This commit is contained in:
Ricky Zhou (周家杰) 2007-09-17 09:10:30 -07:00
parent 44020c6d25
commit 23bb57d5a8

View file

@ -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):