Use location local variable fix

This commit is contained in:
Artur Maciag 2017-11-14 16:15:50 +00:00
parent 64a5045fd8
commit 6254d800a8

View file

@ -120,7 +120,7 @@ class RequestValidator(object):
location = request.parameters[param.location.value]
try:
raw = request.parameters[param.location.value][param.name]
raw = location[param.name]
except KeyError:
raise MissingParameter(
"Missing required `{0}` parameter".format(param.name))