Skip to content

Commit 980f750

Browse files
committed
sequential, threaded & async HTTP clients using HTTPX
1 parent 6359a4d commit 980f750

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

20-futures/getflags/flags2_asyncio.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ async def supervisor(cc_list: list[str],
6767
to_do_iter = asyncio.as_completed(to_do) # <4>
6868
if not verbose:
6969
to_do_iter = tqdm.tqdm(to_do_iter, total=len(cc_list)) # <5>
70+
error: httpx.HTTPError | None = None
7071
for coro in to_do_iter: # <6>
7172
try:
7273
status = await coro # <7>

20-futures/getflags/flags2_asyncio_executor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ async def supervisor(cc_list: list[str],
7070
to_do_iter = asyncio.as_completed(to_do) # <4>
7171
if not verbose:
7272
to_do_iter = tqdm.tqdm(to_do_iter, total=len(cc_list)) # <5>
73+
error: httpx.HTTPError | None = None
7374
for coro in to_do_iter: # <6>
7475
try:
7576
status = await coro # <7>

0 commit comments

Comments
 (0)