From 830f4b6842c5d6d9468cf29c34129f4e5e6f31bd Mon Sep 17 00:00:00 2001 From: Cleber Rosa Date: Tue, 29 Oct 2024 09:20:32 -0400 Subject: [PATCH] lint: fix one outstanding raise-missing-from / W0707 This is follow up of 66c549d9f. Reference: https://pylint.pycqa.org/en/latest/user_guide/messages/warning/raise-missing-from.html Signed-off-by: Cleber Rosa --- avocado/utils/network/interfaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avocado/utils/network/interfaces.py b/avocado/utils/network/interfaces.py index 25cecf5f25..d0263669bf 100644 --- a/avocado/utils/network/interfaces.py +++ b/avocado/utils/network/interfaces.py @@ -573,7 +573,7 @@ def nm_flush_ipaddr(self): run_command(cmd, self.host, sudo=True) except Exception as ex: msg = f"Failed to flush ipaddr. {ex}" - raise NWException(msg) + raise NWException(msg) from ex def remove_link(self): """Deletes virtual interface link.