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

"tuple index out of range" when using task_status view on task generating an exception #8

Closed
mattknoxca opened this issue Aug 23, 2010 · 1 comment

Comments

@mattknoxca
Copy link

In the "task_status" view, whenever I try to call this view on a task that has generated an exception, I get a "tuple index out of range" error. Specifically, the errors occurs in the dictionary where it assigns "result": str(res.args[0])

I am not sure what "res.args" is exactly, but replacing that line with 'str(res.args[0] if res.args else "")' allows me to get the exception info as expected.

@ask
Copy link
Contributor

ask commented Aug 24, 2010

views.task_status: Use repr() of the exception for failed tasks. Closed by 63b0d80. Thanks to mattknoxca.

This issue was closed.
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

No branches or pull requests

2 participants