|
@@ -1021,9 +1021,15 @@ class SpApiRequest:
|
|
|
SpApiRequest.data_judge(refresh_token,sp_api, data_type, seller_id, auth_conn,days=days,**a_kw)
|
|
|
except Exception as e:
|
|
|
print(e)
|
|
|
- time.sleep(10)
|
|
|
- SpApiRequest.data_judge(refresh_token,sp_api, data_type, seller_id, auth_conn,days=days,**a_kw)
|
|
|
-
|
|
|
+ try:
|
|
|
+ print('first time to try...')
|
|
|
+ time.sleep(10)
|
|
|
+ SpApiRequest.data_judge(refresh_token,sp_api, data_type, seller_id, auth_conn,days=days,**a_kw)
|
|
|
+ except Exception as e:
|
|
|
+ print(e)
|
|
|
+ print('twice time to try...')
|
|
|
+ time.sleep(20)
|
|
|
+ SpApiRequest.data_judge(refresh_token, sp_api, data_type, seller_id, auth_conn, days=days, **a_kw)
|
|
|
@staticmethod
|
|
|
def data_judge(refresh_token,sp_api,data_type,seller_id,auth_conn,days=-1,**kwargs):
|
|
|
a_kw = kwargs
|