From 988e5a7fb2cd178e9435e66824bebfe193349315 Mon Sep 17 00:00:00 2001 From: William Courtney Date: Thu, 18 Apr 2024 01:45:22 +0000 Subject: [PATCH] More removals. --- cirq-google/cirq_google/engine/stream_manager.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cirq-google/cirq_google/engine/stream_manager.py b/cirq-google/cirq_google/engine/stream_manager.py index a1745ca75fe..f771af9855e 100644 --- a/cirq-google/cirq_google/engine/stream_manager.py +++ b/cirq-google/cirq_google/engine/stream_manager.py @@ -339,13 +339,6 @@ def _get_retry_request_or_raise( if not 'get_quantum_result' in current_request: return get_result_request - # Code.JOB_ALREADY_EXISTS should never happen. - # The first stream request is always a CreateQuantumProgramAndJobRequest, which never fails - # with this error because jobs are scoped within a program. - # CreateQuantumJobRequests would fail with a PROGRAM_ALREADY_EXISTS if the job already - # exists because program and job creation happen atomically for a - # CreateQuantumProgramAndJobRequest. - raise StreamError(error.message)