Skip to content

Commit fa0aca4

Browse files
committed
lint
1 parent 49a15fc commit fa0aca4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

asyncpg/connect_utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,14 +1092,15 @@ async def _connect(*, loop, connection_class, record_class, **kwargs):
10921092
if target_attr == SessionAttribute.prefer_standby and candidates:
10931093
chosen_connection = random.choice(candidates)
10941094
finally:
1095-
1095+
10961096
async def _close_candidates(conns, chosen):
10971097
await asyncio.gather(
10981098
*(c.close() for c in conns if c is not chosen),
10991099
return_exceptions=True
11001100
)
11011101
if candidates:
1102-
asyncio.create_task(_close_candidates(candidates, chosen_connection))
1102+
asyncio.create_task(
1103+
_close_candidates(candidates, chosen_connection))
11031104

11041105
if chosen_connection:
11051106
return chosen_connection

0 commit comments

Comments
 (0)