diff --git a/myresources/crocodile/meta.py b/myresources/crocodile/meta.py index a4521ea..bf30589 100644 --- a/myresources/crocodile/meta.py +++ b/myresources/crocodile/meta.py @@ -724,9 +724,9 @@ def wrapper(*args: PS.args, **kwargs: PS.kwargs): sleep_time = self.sleep * (idx + 1) case "exponential": sleep_time = self.sleep * (idx + 1)**2 - print(f"""💥 Robust call of `{func}` failed with ```{ex}```.\nretrying {idx}/{self.retry} more times after sleeping for {sleep_time} seconds.\nTotal wait time so far {time.time() - t0: 0.1f} seconds""") + print(f"""💥 Robust call of `{func}` failed with ```{ex}```.\nretrying {idx}/{self.retry} more times after sleeping for {sleep_time} seconds.\nTotal wait time so far {time.time() - t0: 0.1f} seconds.""") time.sleep(sleep_time) - raise RuntimeError(f"💥 Robust call failed after {self.retry} retries and total wait time of {time.time() - t0: 0.1f} seconds") + raise RuntimeError(f"💥 Robust call failed after {self.retry} retries and total wait time of {time.time() - t0: 0.1f} seconds.\n{func=}\n{args=}\n{kwargs=}") return wrapper