|
@@ -1020,8 +1020,9 @@ class SpApiRequest:
|
|
|
try:
|
|
|
SpApiRequest.data_judge(refresh_token,sp_api, data_type, seller_id, auth_conn,days=days,**a_kw)
|
|
|
except Exception as e:
|
|
|
- print(e)
|
|
|
try:
|
|
|
+ if e.args[0][0]['code']=='InvalidInput':
|
|
|
+ return ''
|
|
|
print('first time to try...')
|
|
|
time.sleep(5)
|
|
|
SpApiRequest.data_judge(refresh_token,sp_api, data_type, seller_id, auth_conn,days=days,**a_kw)
|