How to Catch Errors in SimpleXMLRPCServer

gregpinero at gregpinero at
Thu Sep 27 21:35:45 CEST 2007

I have a pretty simple XMLRPCServer, something along the lines of the

server = SimpleXMLRPCServer(("localhost", 8000))
server.register_function(lambda x,y: x+y, 'add')

Now what I want to do is catch any errors that happen on requests, and
ideally have them emailed to me.  I have the email part all taken care
of, I just need to know how to get at the exceptions.

Thanks in advance for any help,


More information about the Python-list mailing list