mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
More xmlrpc tweaks: xmlserver.execute() now logs non-public exceptions; xmlclient.forward() now handles socket error; fixed some Python 2.4 problems in lite-xmlrpc2.py
This commit is contained in:
committed by
Rob Crittenden
parent
24b6cb89d4
commit
833088955c
@@ -66,8 +66,11 @@ class xmlserver(Backend):
|
||||
print 'okay'
|
||||
except Exception, e:
|
||||
if not isinstance(e, PublicError):
|
||||
self.exception(
|
||||
'%s: %s', e.__class__.__name__, str(e)
|
||||
)
|
||||
e = InternalError()
|
||||
assert isinstance(e, PublicError)
|
||||
self.debug('Returning %r exception', e.__class__.__name__)
|
||||
self.info('%s: %s', e.__class__.__name__, str(e))
|
||||
response = Fault(e.errno, e.strerror)
|
||||
return xml_dumps(response, methodresponse=True)
|
||||
|
||||
Reference in New Issue
Block a user