We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 850592f commit e87152dCopy full SHA for e87152d
1 file changed
src/labthings/actions/thread.py
@@ -152,6 +152,11 @@ def cancelled(self) -> bool:
152
"""Alias of `stopped`"""
153
return self.stopped
154
155
+ @property
156
+ def exception(self) -> Optional[Exception]:
157
+ """The Exception that caused the action to fail."""
158
+ return self._exception
159
+
160
def update_progress(self, progress: int):
161
"""
162
Update the progress of the ActionThread.
0 commit comments