diff --git a/tests/integration/tests/test_util/harness/lxd.py b/tests/integration/tests/test_util/harness/lxd.py index 450ffa978..908abf28b 100644 --- a/tests/integration/tests/test_util/harness/lxd.py +++ b/tests/integration/tests/test_util/harness/lxd.py @@ -230,10 +230,10 @@ def delete_instance(self, instance_id: str): try: # There are cases where the instance is not deleted properly and this command is stuck. # A timeout prevents this. - run(["lxc", "rm", instance_id, "--force", "--debug"], timeout=60*5) + run(["lxc", "rm", instance_id, "--force", "--debug"], timeout=60 * 5) except subprocess.CalledProcessError as e: raise HarnessError(f"failed to delete instance {instance_id}") from e - except subprocess.TimeoutExpired as e: + except subprocess.TimeoutExpired: LOG.warning("LXC container removal timed out.") pass