Skip to content

Commit aeb33e3

Browse files
committed
Fix lint issue with new async content
1 parent 151ed14 commit aeb33e3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ultimatepython/advanced/async.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,12 @@ async def advanced_async_patterns() -> None:
9595

9696
# Task Groups - structured concurrency (Python 3.11+)
9797
async def task_group_example():
98-
results = []
9998
try:
10099
async with asyncio.TaskGroup() as tg:
101100
# Start multiple tasks in a group
102101
for i in range(5):
103102
tg.create_task(start_job(f"task_{i}", _DELAY_SMALL))
104-
except Exception as e:
103+
except Exception:
105104
# TaskGroup propagates exceptions from child tasks
106105
pass
107106

0 commit comments

Comments
 (0)