Update dirty_check.py
This commit is contained in:
parent
0ba34e850b
commit
0815afead6
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Reference in a new issue