diff --git a/Lib/xmlrpc/server.py b/Lib/xmlrpc/server.py index eb231d3db49..65f87d9541a 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()