featurelist.orgfeaturelist.org
 
U
D
2 points - posted 1893 days ago by Mattie - status: Completed - 1 comments watch embed this
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_*

tedshroyer posted on 2008-03-19 05:29:47
I caught protocol errors, but maybe I should generalize it to catch all errors out of xmlrpclib