From 4c1b03cbb6260a146970c1c3e603ba0a5f17bacf Mon Sep 17 00:00:00 2001 From: Andrew Rowley Date: Thu, 30 Nov 2023 15:58:41 +0000 Subject: [PATCH] flake8 --- spinnman/spalloc/spalloc_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spinnman/spalloc/spalloc_client.py b/spinnman/spalloc/spalloc_client.py index 9ecab5b66..c81b6a48b 100644 --- a/spinnman/spalloc/spalloc_client.py +++ b/spinnman/spalloc/spalloc_client.py @@ -617,7 +617,7 @@ def open_udp_listener_connection(self) -> UDPConnection: def wait_for_state_change(self, old_state: SpallocState, n_retries: Optional[int] = None) -> SpallocState: retries = 0 - while (old_state != SpallocState.DESTROYED and + while (old_state != SpallocState.DESTROYED and (n_retries is None or retries < n_retries)): retries += 1 obj = self._get(self._url, wait="true", timeout=None).json()