Fix the invalid argument of webob.exc.HTTPBadRequest

webob.exc.HTTPBadRequest() does not have a parameter 'reason'.

Change-Id: I65103ce72849e921150c4d098993fa523f53fe3a
Closes-Bug: #1264223
This commit is contained in:
KIYOHIRO ADACHI 2013-12-26 16:09:01 +09:00
parent 24d7e24413
commit 534ce5dde1
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class SchedulerHintsController(wsgi.Controller):
hints.update(body[attr])
except ValueError:
msg = _("Malformed scheduler_hints attribute")
raise webob.exc.HTTPBadRequest(reason=msg)
raise webob.exc.HTTPBadRequest(explanation=msg)
return hints