Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mypy error on master #5865

Merged
merged 3 commits into from
Sep 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion cirq-google/cirq_google/engine/engine_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ async def _run_retry_async(self, func: Callable[[_M], Awaitable[_R]], request: _
message = err.message
# Raise RuntimeError for exceptions that are not retryable.
# Otherwise, pass through to retry.
if err.code.value not in RETRYABLE_ERROR_CODES:
tanujkhattar marked this conversation as resolved.
Show resolved Hide resolved
if err.code not in RETRYABLE_ERROR_CODES:
raise EngineException(message) from err

if current_delay > self.max_retry_delay_seconds:
Expand Down