From 1f17319e2b6d0a0fc22af1c816e958efb4b116d5 Mon Sep 17 00:00:00 2001 From: woutdenolf Date: Mon, 12 Aug 2024 17:23:59 +0200 Subject: [PATCH] [REMOVE] --- src/silx/utils/retry.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/silx/utils/retry.py b/src/silx/utils/retry.py index 7fd9fbb6d7..f8c1c86abc 100644 --- a/src/silx/utils/retry.py +++ b/src/silx/utils/retry.py @@ -83,8 +83,10 @@ def _retry_loop(retry_timeout=None, retry_period=None, retry_on_error=None): else: t0 = None retry_state = {"t0": t0, "exception": None, "retry_on_error": retry_on_error} + print("AAA start timer", retry_state["t0"]) while True: yield retry_state + print("BBB check timer", time.time(), time.time() - retry_state["t0"]) if has_timeout and (time.time() - retry_state["t0"]) > retry_timeout: err_msg = "%s seconds" % retry_timeout cause = retry_state.get("exception") @@ -145,6 +147,7 @@ def wrapper(*args, **kw): # restart the retry loop if retry_state["t0"] is not None: retry_state["t0"] = time.time() + print("AAA reset timer", retry_state["t0"]) retry_state["retry_on_error"] = oretry_on_error return