Browse Source

Merge "Update expected exception for missing ports"

Zuul 4 months ago
parent
commit
0e900b6cfe
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      networking_hyperv/neutron/_common_utils.py

+ 1
- 2
networking_hyperv/neutron/_common_utils.py View File

@@ -52,8 +52,7 @@ def ignore_missing_ports(f):
52 52
 
53 53
         try:
54 54
             return f(*args, **kwargs)
55
-        except (os_win_exc.HyperVPortNotFoundException,
56
-                os_win_exc.HyperVvNicNotFound):
55
+        except os_win_exc.NotFound:
57 56
             func_name = reflection.get_callable_name(f)
58 57
             LOG.warning("Could not find port '%(port_id)s' while executing "
59 58
                         "'%(func_name)s'. It may have been removed.",

Loading…
Cancel
Save