Fix some typos in wsgi.py & catalog.py
Change-Id: I18f74b726caa208585f193b90824824aa3bbd272
This commit is contained in:
parent
8c1355f4b7
commit
50744ca68e
@ -362,7 +362,7 @@ class Controller(object):
|
||||
if key not in valid_query_params:
|
||||
raise exc.HTTPBadRequest(
|
||||
_('Bad value passed to filter. '
|
||||
'Got {key}, exected:{valid}').format(
|
||||
'Got {key}, expected:{valid}').format(
|
||||
key=key, valid=', '.join(valid_query_params)))
|
||||
if key == 'sort_keys':
|
||||
available_sort_keys = ['name', 'created',
|
||||
|
@ -921,7 +921,7 @@ class JSONPatchDeserializer(TextDeserializer):
|
||||
jsonschema.validate(property_to_update,
|
||||
validation_schemas.PKG_UPDATE_SCHEMA)
|
||||
except jsonschema.ValidationError as e:
|
||||
LOG.error(_LE("Schema validation error occured: {error}")
|
||||
LOG.error(_LE("Schema validation error occurred: {error}")
|
||||
.format(error=e))
|
||||
raise webob.exc.HTTPBadRequest(explanation=e.message)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user