Skip to content

Commit

Permalink
Changed warning message and added inline comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarGoldman committed Nov 30, 2023
1 parent f4837eb commit 00b98e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions qiskit_experiments/framework/experiment_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1071,11 +1071,12 @@ def _retrieve_data(self):
"""Retrieve job data if missing experiment data."""
# Get job results if missing in experiment data.
if self.provider is None:
# 'self._result_data' could be locked, so I check a copy of it.
if not self._result_data.copy():
# Adding warning so the user will have indication why the analysis may fail.
LOG.warning(
"provider is None and there is no result data that are stored."
" no data was retrieved."
"Provider for ExperimentData object doesn't exist, resulting in a failed attempt to"
" retrieve data from the server; no stored result data exists"
)
return
retrieved_jobs = {}
Expand Down

0 comments on commit 00b98e6

Please sign in to comment.