From ddd429404efa780b6c6aaa46c102b4c21b3a81bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Tue, 5 Mar 2024 17:32:46 +0100 Subject: [PATCH] fix pylint issues --- satella/coding/concurrent/sync.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/satella/coding/concurrent/sync.py b/satella/coding/concurrent/sync.py index c1bd6676..5c4f5aaa 100644 --- a/satella/coding/concurrent/sync.py +++ b/satella/coding/concurrent/sync.py @@ -23,11 +23,10 @@ def _max_wait_atm_n(measurement, max_wait, atm_n): while measurement() < max_wait: try: atm_n.wait_until_equal(0, 1) - break + return except WouldWaitMore: continue - else: - raise WouldWaitMore('timeout exceeded') + raise WouldWaitMore('timeout exceeded') def sync_threadpool(tpe: tp.Union[ExecutorWrapper, ThreadPoolExecutor], -- GitLab