Skip to content

Commit

Permalink
Fix athrow call (warning in python 3.12) (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
ziima authored Feb 22, 2024
1 parent 91c1f80 commit fbcb523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asyncstdlib/contextlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async def __aexit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> bool:
if exc_type is GeneratorExit:
result = await self.gen.aclose() # type: ignore
else:
result = await self.gen.athrow(exc_type, exc_val, exc_tb)
result = await self.gen.athrow(exc_val)
except StopAsyncIteration as exc:
return exc is not exc_tb
except RuntimeError as exc:
Expand Down

0 comments on commit fbcb523

Please sign in to comment.