Commit ad5625cc authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

rewrite retry

parent 794846ae
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ Modified-History:

import traceback


def retry(func, *args, **kwargs):
    if "n_try" in kwargs.keys():
        n_try = kwargs.pop("n_try")