Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af577cb

Browse files
committed
Merged revisions 86051 via svnmerge from
svn+ssh://[email protected]/python/branches/py3k ........ r86051 | benjamin.peterson | 2010-10-31 13:13:04 -0500 (Sun, 31 Oct 2010) | 1 line more fun with string exceptions ........
1 parent bdf5eff commit af577cb

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)