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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d8c917f304d8375e982ec362a42f790cf4f0e4d;p=python more fun with string exceptions --- diff --git a/Lib/xmlrpc/server.py b/Lib/xmlrpc/server.py index eb231d3db4..65f87d9541 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()