Skip to content

Commit

Permalink
added read-only property for _exception
Browse files Browse the repository at this point in the history
  • Loading branch information
rwb27 committed Jul 24, 2021
1 parent 850592f commit e87152d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/labthings/actions/thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ def cancelled(self) -> bool:
"""Alias of `stopped`"""
return self.stopped

@property
def exception(self) -> Optional[Exception]:
"""The Exception that caused the action to fail."""
return self._exception

def update_progress(self, progress: int):
"""
Update the progress of the ActionThread.
Expand Down

0 comments on commit e87152d

Please sign in to comment.