Skip to content

Commit 2d8c917

Browse files
committed
more fun with string exceptions
1 parent 9595166 commit 2d8c917

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/xmlrpc/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def _dispatch(self, method, params):
6767
elif method == 'add':
6868
return params[0] + params[1]
6969
else:
70-
raise 'bad method'
70+
raise ValueError('bad method')
7171
7272
server = SimpleXMLRPCServer(("localhost", 8000))
7373
server.register_introspection_functions()

0 commit comments

Comments
 (0)