Skip to content

Commit cbbc38a

Browse files
committed
Remove redundant suppression of exception
This was added because a test case was registering multiple conflicting options. I am removing because it is no longer required.
1 parent fa66dcf commit cbbc38a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • python/neutron-understack/neutron_understack

python/neutron-understack/neutron_understack/config.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import contextlib
2-
31
from keystoneauth1 import loading as ks_loading
42
from keystoneauth1 import session as ks_session
53
from oslo_config import cfg
@@ -162,8 +160,7 @@ def register_l3_svc_cisco_asa_opts(config):
162160

163161

164162
def register_understack_vni_opts(config):
165-
with contextlib.suppress(cfg.DuplicateOptError):
166-
config.register_opts(_understack_vni_opts, _OPT_GRP_UNDERSTACK_VNI)
163+
config.register_opts(_understack_vni_opts, _OPT_GRP_UNDERSTACK_VNI)
167164

168165

169166
def get_session(group: str) -> ks_session.Session:

0 commit comments

Comments
 (0)