Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix README for .exception_class #128

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

tomkins
Copy link
Contributor

@tomkins tomkins commented Dec 18, 2024

Tiny README tweak, because results don't have an exception:

In [6]: result = default_task_backend.get_result("7d9d8e82-e62c-4fb2-8305-8e79b24d77c6")

In [7]: result.exception
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[7], line 1
----> 1 result.exception

AttributeError: 'TaskResult' object has no attribute 'exception'

In [8]: result.exception_class
Out[8]: subprocess.CalledProcessError

@RealOrangeOne
Copy link
Owner

D'oh - thanks!

@RealOrangeOne RealOrangeOne merged commit dd1eb52 into RealOrangeOne:master Dec 19, 2024
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants