Commit 2d8c917f authored by Benjamin Peterson's avatar Benjamin Peterson

more fun with string exceptions

parent 95951661
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment