From: Benjamin Peterson Date: Sun, 31 Oct 2010 18:13:04 +0000 (+0000) Subject: more fun with string exceptions X-Git-Tag: v3.2a4~214 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d8c917f304d8375e982ec362a42f790cf4f0e4d;p=thirdparty%2FPython%2Fcpython.git more fun with string exceptions --- diff --git a/Lib/xmlrpc/server.py b/Lib/xmlrpc/server.py index eb231d3db497..65f87d9541ad 100644 --- a/Lib/xmlrpc/server.py +++ b/Lib/xmlrpc/server.py @@ -67,7 +67,7 @@ class Math: elif method == 'add': return params[0] + params[1] else: - raise 'bad method' + raise ValueError('bad method') server = SimpleXMLRPCServer(("localhost", 8000)) server.register_introspection_functions()