bugfix: add 'err' scoped exception

This commit is contained in:
Pim van Pelt
2023-06-23 00:52:44 +02:00
parent 6975757303
commit 2396b96252

View File

@ -371,7 +371,7 @@ class VPPApi:
api_response = self.vpp.api.acl_interface_list_dump() api_response = self.vpp.api.acl_interface_list_dump()
for iface in api_response: for iface in api_response:
self.cache["interface_acls"][iface.sw_if_index] = iface self.cache["interface_acls"][iface.sw_if_index] = iface
except AttributeError: except AttributeError as err:
self.logger.warning(f"ACL API not found - missing plugin: {err}") self.logger.warning(f"ACL API not found - missing plugin: {err}")
self.logger.debug("Retrieving bondethernets") self.logger.debug("Retrieving bondethernets")