Fix exception translation
An exception should not have a log translation. Please see http://docs.openstack.org/developer/oslo.i18n/guidelines.html Change-Id: I57a3c09193e9b289196d07d1c36352c9133b86e0
This commit is contained in:
parent
08f9ae3229
commit
8214a8a2b7
@ -89,7 +89,7 @@ class BgpDrAgentController(wsgi.Controller):
|
|||||||
bgp_ext.BGP_EXT_ALIAS)
|
bgp_ext.BGP_EXT_ALIAS)
|
||||||
if not plugin:
|
if not plugin:
|
||||||
LOG.error(_LE('No plugin for BGP routing registered'))
|
LOG.error(_LE('No plugin for BGP routing registered'))
|
||||||
msg = _LE('The resource could not be found.')
|
msg = _('The resource could not be found.')
|
||||||
raise webob.exc.HTTPNotFound(msg)
|
raise webob.exc.HTTPNotFound(msg)
|
||||||
return plugin
|
return plugin
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user