Details

Applies to

MoinMoin 1.9.3, MoinMoin/wikisync.py

Purpose
Show an unhandled XMLRPC fault correctly when synchronizing between wikis.
Description
The xmlrpclib.Fault exception handling in the wikisync does not print the underlying error. Instead it shows an empty string.

Patch

   1 183c183
   2 <             raise UnsupportedWikiException("xmlrpclib.Fault: %s" % str(err))
   3 ---
   4 >             raise UnsupportedWikiException("XMLRPC fault occured: %s (Code: %d)" % (err.faultString, err.faultCode) )
XMLRPCFaultMessageFix.patch

Discussion

preferable is a unified patch (diff -u)

Plan


CategoryMoinMoinPatch

MoinMoin: MoinMoinPatch/SyncXMLRPCFaultMessageFix (last edited 2011-01-18 18:49:22 by ReimarBauer)