2e reviewed manuscript
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user