mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-13 09:41:55 -06:00
Syntax error, ')' in the worng place throws nasty 500 errors on ldap errors :)
This commit is contained in:
parent
b4c11c9bea
commit
fbb2637a48
@ -175,7 +175,7 @@ class ModXMLRPCRequestHandler(object):
|
||||
except ipaerror.IPAError, e:
|
||||
self.traceback = True
|
||||
|
||||
if (isinstance(e.detail, ldap.LDAPError)) and len(e.detail[0].get('desc') > 1):
|
||||
if (isinstance(e.detail, ldap.LDAPError) and len(e.detail[0].get('desc')) > 1):
|
||||
err = ": %s: %s" % (e.detail[0].get('desc'), e.detail[0].get('info',''))
|
||||
response = dumps(Fault(e.code, str(e) + err))
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user