Skip to content

Commit

Permalink
lint: fix one outstanding raise-missing-from / W0707
Browse files Browse the repository at this point in the history
This is follow up of 66c549d.

Reference: https://pylint.pycqa.org/en/latest/user_guide/messages/warning/raise-missing-from.html
Signed-off-by: Cleber Rosa <crosa@redhat.com>
  • Loading branch information
clebergnu committed Oct 29, 2024
1 parent 16c39ea commit 830f4b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avocado/utils/network/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 576 in avocado/utils/network/interfaces.py

View check run for this annotation

Codecov / codecov/patch

avocado/utils/network/interfaces.py#L576

Added line #L576 was not covered by tests

def remove_link(self):
"""Deletes virtual interface link.
Expand Down

0 comments on commit 830f4b6

Please sign in to comment.