Skip to content

Commit 31ade5b

Browse files
1 parent 4143bfc commit 31ade5b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎google/api_core/retry/retry_streaming_async.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,13 @@ async def retry_target_stream(
163163

164164
# TODO: Remove this conditional once the minimum supported Python version is 3.11
165165
if sys.version_info[:3] >= (3, 11, 0):
166-
await cast(AsyncGenerator["_Y", None], target_iterator).athrow(
167-
sys.exception())
166+
await cast(
167+
AsyncGenerator["_Y", None], target_iterator
168+
).athrow(sys.exception())
168169
else:
169-
await cast(AsyncGenerator["_Y", None], target_iterator).athrow(
170-
*sys.exc_info())
170+
await cast(
171+
AsyncGenerator["_Y", None], target_iterator
172+
).athrow(*sys.exc_info())
171173
else:
172174
raise
173175
return

0 commit comments

Comments
 (0)