Syntax error, ')' in the worng place throws nasty 500 errors on ldap errors :)

This commit is contained in:
Simo Sorce committed 2008-02-21 17:16:17 -05:00
1 parent b4c11c9bea
commit fbb2637a48
1 file changed
+1 -1
+1 -1
View File
@@ -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: