From e56f66ccb96529d280cbf89480b72b79a11662ef Mon Sep 17 00:00:00 2001 From: Benjamin Schimke Date: Wed, 23 Oct 2024 10:24:12 +0200 Subject: [PATCH] fix linting --- tests/integration/tests/test_util/harness/lxd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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