Skip to content

Commit e87152d

Browse files
committed
added read-only property for _exception
1 parent 850592f commit e87152d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/labthings/actions/thread.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,11 @@ def cancelled(self) -> bool:
152152
"""Alias of `stopped`"""
153153
return self.stopped
154154

155+
@property
156+
def exception(self) -> Optional[Exception]:
157+
"""The Exception that caused the action to fail."""
158+
return self._exception
159+
155160
def update_progress(self, progress: int):
156161
"""
157162
Update the progress of the ActionThread.

0 commit comments

Comments
 (0)