We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9595166 commit 2d8c917Copy full SHA for 2d8c917
1 file changed
Lib/xmlrpc/server.py
@@ -67,7 +67,7 @@ def _dispatch(self, method, params):
67
elif method == 'add':
68
return params[0] + params[1]
69
else:
70
- raise 'bad method'
+ raise ValueError('bad method')
71
72
server = SimpleXMLRPCServer(("localhost", 8000))
73
server.register_introspection_functions()
0 commit comments