Use imported exception for update_store_acls
update_store_acls uses unimported exception HTTPBadRequest. This patch changes it to use in the right scope. Fixes bug 1080991 Change-Id: I82b6488a9b67a27f46f492d0d08a41cd4b7f40c3
This commit is contained in:
parent
0e9111ca59
commit
73c7982c9c
@ -81,6 +81,6 @@ class BaseController(object):
|
||||
write_tenants=write_tenants)
|
||||
except exception.UnknownScheme:
|
||||
msg = _("Store for image_id not found: %s") % image_id
|
||||
raise HTTPBadRequest(explanation=msg,
|
||||
request=req,
|
||||
content_type='text/plain')
|
||||
raise webob.exc.HTTPBadRequest(explanation=msg,
|
||||
request=req,
|
||||
content_type='text/plain')
|
||||
|
Loading…
Reference in New Issue
Block a user