Skip to content

Commit

Permalink
views.task_status: Use repr() of the exception for failed tasks. Closes
Browse files Browse the repository at this point in the history
#8.  Thanks to mattknoxca.
  • Loading branch information
Ask Solem committed Aug 24, 2010
1 parent db4703e commit 63b0d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djcelery/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def task_status(request, task_id):
response_data = dict(id=task_id, status=status, result=res)
if status in default_backend.EXCEPTION_STATES:
traceback = default_backend.get_traceback(task_id)
response_data.update({"result": str(res.args[0]),
response_data.update({"result": repr(res),
"exc": get_full_cls_name(res.__class__),
"traceback": traceback})

Expand Down

0 comments on commit 63b0d80

Please sign in to comment.