Update task.py
Update tasks.rst
Merge pull request #1970 from dtheodor/master

Fix documentation for Task.throws