Skip to content

Commit

Permalink
Update job.py
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb-johnson authored Oct 2, 2023
1 parent d446948 commit e0ebb6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/quantum_serverless/core/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,9 @@ def result(self, wait=True, cadence=5, verbose=False):
if isinstance(results, str):
try:
results = json.loads(results, cls=QiskitObjectsDecoder)
except json.JSONDecodeError:
pass

except json.JSONDecodeError as exception:
logging.warning(f"Error during results decoding. Details: {exception}")
return results

def _in_terminal_state(self) -> bool:
Expand Down

0 comments on commit e0ebb6d

Please sign in to comment.