mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
more fun with string exceptions
This commit is contained in:
parent
959516615c
commit
2d8c917f30
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue