Commit 86a46ad6 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

print func args kwargs for debug purpose

parent 9b73aea1
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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.")