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

set n_try to 5 for default

parent 3c417809
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -9,7 +9,11 @@ Modified-History:
"""


def retry(func, n_try=3, *args, **kwargs):
def retry(func, *args, **kwargs):
    if "n_try" in kwargs.keys():
        n_try = kwargs.pop("n_try")
    else:
        n_try = 5
    # is DFS?
    try:
        assert func.__self__.__class__.__module__.startswith("csst_dfs_api"), func