Default ConvertedException code to 500
webob 1.5.0 released on 10/11 has change f6c749011 which
strictly enforces status codes in exceptions, and 0 is not
a valid status code so tests fail.
Change the default to 500 to match the default in the parent
class in webob.
Closes-Bug: #1505153
(cherry picked from commit 10438c0fc3
)
-- Squashed with the following change to open kilo 2015.1.3 since they are
co-dependent. --
Open Kilo 2015.1.3
Change-Id: Ic97696684c8545068597b4f1efd9d3eb19294d93
--
Change-Id: If04eedb402092ca2cc307cb52f2231493c4375a2
This commit is contained in:
parent
24c6b904f7
commit
fc932f1fbc
|
@ -46,7 +46,7 @@ CONF.register_opts(exc_log_opts)
|
|||
|
||||
|
||||
class ConvertedException(webob.exc.WSGIHTTPException):
|
||||
def __init__(self, code=0, title="", explanation=""):
|
||||
def __init__(self, code=500, title="", explanation=""):
|
||||
self.code = code
|
||||
self.title = title
|
||||
self.explanation = explanation
|
||||
|
|
Loading…
Reference in New Issue