From 2d8c917f304d8375e982ec362a42f790cf4f0e4d Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 31 Oct 2010 18:13:04 +0000 Subject: more fun with string exceptions --- Lib/xmlrpc/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/xmlrpc/server.py b/Lib/xmlrpc/server.py index eb231d3..65f87d9 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() -- cgit v0.12