From 89b8d35a219efbf606576f31ad50ab2162c0ee3c Mon Sep 17 00:00:00 2001 From: Sebastian Eibl Date: Thu, 2 May 2024 11:48:45 +0200 Subject: [PATCH] Update error.py Print the real error message immediately. --- pyiron_base/utils/error.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyiron_base/utils/error.py b/pyiron_base/utils/error.py index 1ff00c719..0c19f28c7 100644 --- a/pyiron_base/utils/error.py +++ b/pyiron_base/utils/error.py @@ -145,7 +145,10 @@ def retry( return func() except error as e: logger.warn( - f"{msg} Trying again in {delay}s. Tried {i + 1} times so far..." + f"{e}" + ) + logger.warn( + f"Trying again in {delay}s. Tried {i + 1} times so far..." ) time.sleep(delay) delay *= delay_factor