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

set n_try to 5 for default

parent 3c417809
Pipeline #2610 failed with stage
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment