Exception difference 2.4 ==> 2.5

Ross Ridge rridge at csclub.uwaterloo.ca
Wed Nov 19 23:38:12 EST 2008


D'Arcy J.M. Cain <darcy at druid.net> wrote:
>I managed to move everything into one test file and switched to the
>SimpleXMLRPCServer module but to no avail.  The new code is at
>ftp://ftp.druid.net/pub/distrib/test_2.5

It seems be this issue:

	http://bugs.python.org/issue1739842

Your handler in the server thread correctly catches the RuntimeException
and converts into a Fault object which it returns.  Unfortunately,
xmlrpclib then throws an exception instead of marshalling the Fault
object.  Your server catches the exception and turns it into a 500
HTTP server error.  The client thread then throws a ProtocolError,
which is uncaught.

So exceptions are working fine in your test case, the problem is that
xmlrpclib.dumps() can't marshall xmlrpclib.Fault objects in 2.5.

				Ross Ridge

-- 
 l/  //	  Ross Ridge -- The Great HTMU
[oo][oo]  rridge at csclub.uwaterloo.ca
-()-/()/  http://www.csclub.uwaterloo.ca/~rridge/ 
 db  //	  



More information about the Python-list mailing list