Loading csst_common/utils/_retry.py +3 −0 Original line number Diff line number Diff line Loading @@ -30,4 +30,7 @@ def retry(func, *args, **kwargs): return res except BaseException as e: print(f"Error occurs: {e.__repr__()}") print(f" - func: {func}") print(f" - args: {args}") print(f" - kwargs: {kwargs}") raise RuntimeError(f"All {n_try} attempts failed.") Loading
csst_common/utils/_retry.py +3 −0 Original line number Diff line number Diff line Loading @@ -30,4 +30,7 @@ def retry(func, *args, **kwargs): return res except BaseException as e: print(f"Error occurs: {e.__repr__()}") print(f" - func: {func}") print(f" - args: {args}") print(f" - kwargs: {kwargs}") raise RuntimeError(f"All {n_try} attempts failed.")