Skip to content

Commit a4bbefc

Browse files
authored
Update import_ind.py
1 parent 5d13a49 commit a4bbefc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/import_ind.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ async def import_ind(force: bool):
116116
with open(f'./cache/{file}', 'r', encoding='utf-8') as fichier:
117117
datas[file] = json.load(fichier).get('data')
118118

119-
async with aiohttp.ClientSession() as session:
119+
connector = aiohttp.TCPConnector(ssl=False)
120+
async with aiohttp.ClientSession(connector=connector) as session:
120121
tasks = [process_data(datas[file], configs[file], file, session, force) for file in cache_files if file in configs.keys()]
121122
await gather_with_concurrency(sesame_import_parallels_files, tasks)

0 commit comments

Comments
 (0)