Skip to content

Commit

Permalink
make sure that results are downloaded from an external (#783)
Browse files Browse the repository at this point in the history
source if the result contains the required keyword

Co-authored-by: Daniel Kaulen <dkaulen@de.ibm.com>
  • Loading branch information
johker01 and daka1510 authored Mar 30, 2023
1 parent 91fc456 commit cadaaa0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qiskit_ibm_runtime/runtime_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,9 @@ def _error_msg_from_job_response(self, response: Dict) -> str:
Error message.
"""
status = response["state"]["status"].upper()
job_result_raw = self._api_client.job_results(job_id=self.job_id())
job_result_raw = self._download_external_result(
self._api_client.job_results(job_id=self.job_id())
)
index = job_result_raw.rfind("Traceback")
if index != -1:
job_result_raw = job_result_raw[index:]
Expand Down

0 comments on commit cadaaa0

Please sign in to comment.