Replace a non-existing exception

Closes-Bug: #1242662

Change-Id: Ie44023c0fd9ba1373ec6e62d9245884b9f719b7e
This commit is contained in:
Yong Sheng Gong 2013-10-21 20:26:36 +08:00
parent 5392ec0f18
commit 7d44629c2e
2 changed files with 5 additions and 2 deletions

View File

@ -567,8 +567,7 @@ class ExtensionManager(object):
LOG.info(_('Loaded extension: %s'), alias)
if alias in self.extensions:
raise exceptions.Error(_("Found duplicate extension: %s") %
alias)
raise exceptions.DuplicatedExtension(alias=alias)
self.extensions[alias] = ext

View File

@ -301,3 +301,7 @@ class NetworkVlanRangeError(NeutronException):
class NetworkVxlanPortRangeError(NeutronException):
message = _("Invalid network VXLAN port range: '%(vxlan_range)s'")
class DuplicatedExtension(NeutronException):
message = _("Found duplicate extension: %(alias)s")