diff --git a/glance/store/swift.py b/glance/store/swift.py index ae3a626..a29474d 100644 --- a/glance/store/swift.py +++ b/glance/store/swift.py @@ -265,8 +265,8 @@ class Store(glance.store.base.Store): except swift_client.ClientException, e: if e.http_status == httplib.NOT_FOUND: uri = location.get_store_uri() - raise exception.NotFound(_("Swift could not find image at " - "uri %(uri)s") % locals()) + msg = _("Swift could not find image at uri.") + raise exception.NotFound(msg) else: raise @@ -513,8 +513,8 @@ class Store(glance.store.base.Store): except swift_client.ClientException, e: if e.http_status == httplib.NOT_FOUND: uri = location.get_store_uri() - raise exception.NotFound(_("Swift could not find image at " - "uri %(uri)s") % locals()) + msg = _("Swift could not find image at uri.") + raise exception.NotFound(msg) else: raise