Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Dec 12, 2023
1 parent 4143bfc commit 31ade5b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions google/api_core/retry/retry_streaming_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,13 @@ async def retry_target_stream(

# TODO: Remove this conditional once the minimum supported Python version is 3.11
if sys.version_info[:3] >= (3, 11, 0):
await cast(AsyncGenerator["_Y", None], target_iterator).athrow(
sys.exception())
await cast(
AsyncGenerator["_Y", None], target_iterator
).athrow(sys.exception())
else:
await cast(AsyncGenerator["_Y", None], target_iterator).athrow(
*sys.exc_info())
await cast(
AsyncGenerator["_Y", None], target_iterator
).athrow(*sys.exc_info())
else:
raise
return
Expand Down

0 comments on commit 31ade5b

Please sign in to comment.