fix: ssl verify

This commit is contained in:
miaoerduo 2023-10-17 13:07:53 +08:00 committed by GitHub
parent ac948fb6b9
commit 9831c96f2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -367,7 +367,7 @@ def git_pull(path):
async def get_data(uri):
print(f"FETCH DATA from: {uri}")
if uri.startswith("http"):
async with aiohttp.ClientSession(trust_env=True) as session:
async with aiohttp.ClientSession(trust_env=True, connector=aiohttp.TCPConnector(verify_ssl=False)) as session:
async with session.get(uri) as resp:
json_text = await resp.text()
else: