Skip to content

Commit

Permalink
lightened the QLM job not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
Henri-ColibrITD committed Mar 13, 2024
1 parent ccbde9e commit 95b8189
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mpqp/execution/providers/atos.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
Observable,
)
from mpqp.execution.devices import ATOSDevice
from mpqp.qasm import qasm2_to_myqlm_Circuit

from ...tools.errors import QLMRemoteExecutionError
from ..connection.qlm_connection import get_QLMaaSConnection
Expand Down Expand Up @@ -515,8 +514,8 @@ def get_result_from_qlm_job_id(job_id: str) -> Result:

try:
qlm_job = connection.get_job(job_id)
except QLMServiceException as e:
raise QLMRemoteExecutionError(f"Job with id {job_id} not found.") from e
except QLMServiceException:
raise QLMRemoteExecutionError(f"Job with id {job_id} not found.") from None

status = qlm_job.get_status()
if status in [
Expand Down

0 comments on commit 95b8189

Please sign in to comment.