Fix webob.exc.HTTPForbidden parameter miss
HTTPForbidden should use the parameter 'explanation' instead of 'detail'. This patch fixes this bug. Change-Id: I0ebc01e8bbcc564debce450ea52faf94faa21eeb Closes-Bug: #1283872
This commit is contained in:
parent
9fbb60dbe0
commit
7d3583a9f3
|
@ -150,7 +150,7 @@ class BaseApplication(object):
|
|||
res = 'message\n'
|
||||
|
||||
# Option 2: a nicely formatted HTTP exception page
|
||||
res = exc.HTTPForbidden(detail='Nice try')
|
||||
res = exc.HTTPForbidden(explanation='Nice try')
|
||||
|
||||
# Option 3: a webob Response object (in case you need to play with
|
||||
# headers, or you want to be treated like an iterable, or or or)
|
||||
|
|
Loading…
Reference in New Issue