We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c4858a commit 101bf68Copy full SHA for 101bf68
src/textual/worker.py
@@ -244,6 +244,11 @@ def result(self) -> ResultType | None:
244
"""The result of the worker, or `None` if there is no result."""
245
return self._result
246
247
+ @property
248
+ def error(self) -> BaseException | None:
249
+ """The exception raised by the worker, or `None` if there was no error."""
250
+ return self._error
251
+
252
def update(
253
self, completed_steps: int | None = None, total_steps: int | None = -1
254
) -> None:
0 commit comments