summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-10-31 18:13:04 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-10-31 18:13:04 (GMT)
commit2d8c917f304d8375e982ec362a42f790cf4f0e4d (patch)
tree5c246b00b837425eaa53fc4c16cadd41fc47210c /Lib
parent959516615c3e302dcec0660788e8156ce397841a (diff)
downloadcpython-2d8c917f304d8375e982ec362a42f790cf4f0e4d.zip
cpython-2d8c917f304d8375e982ec362a42f790cf4f0e4d.tar.gz
cpython-2d8c917f304d8375e982ec362a42f790cf4f0e4d.tar.bz2
more fun with string exceptions
Diffstat (limited to 'Lib')
-rw-r--r--Lib/xmlrpc/server.py2
1 files changed, 1 insertions, 1 deletions
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()