Instead of "xml.parsers.expat.ExpatError" and a huge stack trace when things go wrong with XML-RPC lib, catch the exception and output that there was an error contacting the server. It can then output a single line about the nature of the error, but catch/handle the exception such that it doesn't blow away the error already in sys.last_*
I caught protocol errors, but maybe I should generalize it to catch all errors out of xmlrpclib




tedshroyer posted on 2008-03-19 05:29:47