Mercurial > p > roundup > code
view roundup/anypy/xmlrpc_.py @ 6382:b35a50d02890
Fix issue2551129 - Template not found return 500 and traceback
Handle traceback caused when requested @template is not found.
Moved scope of try to include call to self.selectTemplate.
Patch provided by Cedric Krier.
Additional patch to make this case return 400 error since it
is a client caused error. Test case added.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 18 Apr 2021 20:54:48 -0400 |
| parents | 99d4fb22aa65 |
| children | 7b33365ccb2a |
line wrap: on
line source
try: # Python 3+. from xmlrpc import client, server server.SimpleXMLRPCDispatcher except (ImportError, AttributeError): # Python 2. import xmlrpclib as client # noqa: F401 import SimpleXMLRPCServer as server
