Archived
1
0
Fork 0

Update dirty_check.py

This commit is contained in:
yzhh 2021-09-07 21:08:21 +08:00
parent 0ba34e850b
commit 0815afead6

View file

@ -69,7 +69,7 @@ async def check(*text):
sign = "acs {}:{}".format(accessKeyId, hash_hmac(accessKeySecret, step3, hashlib.sha1))
headers['Authorization'] = sign
# 'Authorization': "acs {}:{}".format(accessKeyId, sign)
async with RetryClient(headers=headers, retry_options=ExponentialRetry(attempts=3)) as session:
async with RetryClient(headers=headers, retry_options=ExponentialRetry(attempts=5)) as session:
async with session.post('{}{}'.format(root, url), data=json.dumps(body)) as resp:
if resp.status == 200:
result = await resp.json()