Merge "Update exception conditions in `_process_create_port`"

This commit is contained in:
Zuul 2024-01-11 11:45:18 +00:00 committed by Gerrit Code Review
commit b1db513783

@ -41,7 +41,7 @@ class PortHardwareOffloadTypeDbMixin(object):
if hw_type not in capabilities:
capabilities.append(hw_type)
data[portbindings.PROFILE]['capabilities'] = capabilities
except (KeyError, AttributeError):
except KeyError:
data[portbindings.PROFILE] = {'capabilities': [hw_type]}
def _extend_port_dict(self, port_db, result):