Skip to content

Commit

Permalink
Update src/braket/tasks/local_quantum_task.py
Browse files Browse the repository at this point in the history
nit

Co-authored-by: Cody Wang <[email protected]>
  • Loading branch information
Sai-prakash15 and speller26 authored Aug 15, 2023
1 parent a98648c commit d515025
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/braket/tasks/local_quantum_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,9 @@ def state(self) -> str:
str: State of the quantum task.
"""
try:
state = self._execution_manager.state()
return self._execution_manager.state()
except (NotImplementedError, AttributeError):
state = self._status()
return state
return self._status()

def _status(self) -> str:
if hasattr(self, "_thread"):
Expand Down

0 comments on commit d515025

Please sign in to comment.