2e reviewed manuscript

This commit is contained in:
Luciano Ramalho
2021-11-12 11:33:12 -03:00
parent f5e3cb8ad3
commit 80f7f84274
32 changed files with 323 additions and 156 deletions

View File

@@ -37,7 +37,7 @@ async def download_one(client: httpx.AsyncClient,
try:
async with semaphore: # <3>
image = await get_flag(client, base_url, cc)
except httpx.HTTPStatusError as exc: # <5>
except httpx.HTTPStatusError as exc: # <4>
res = exc.response
if res.status_code == HTTPStatus.NOT_FOUND:
status = DownloadStatus.NOT_FOUND
@@ -45,7 +45,7 @@ async def download_one(client: httpx.AsyncClient,
else:
raise
else:
await asyncio.to_thread(save_flag, image, f'{cc}.gif') # <6>
await asyncio.to_thread(save_flag, image, f'{cc}.gif') # <5>
status = DownloadStatus.OK
msg = 'OK'
if verbose and msg: