Skip to content

Commit fbcb523

Browse files
authored
Fix athrow call (warning in python 3.12) (#128)
1 parent 91c1f80 commit fbcb523

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asyncstdlib/contextlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ async def __aexit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> bool:
9696
if exc_type is GeneratorExit:
9797
result = await self.gen.aclose() # type: ignore
9898
else:
99-
result = await self.gen.athrow(exc_type, exc_val, exc_tb)
99+
result = await self.gen.athrow(exc_val)
100100
except StopAsyncIteration as exc:
101101
return exc is not exc_tb
102102
except RuntimeError as exc:

0 commit comments

Comments
 (0)