Skip to content

Commit

Permalink
Adds spacing for get_errors()
Browse files Browse the repository at this point in the history
  • Loading branch information
duckduckgrayduck committed Sep 13, 2023
1 parent e98ff6d commit cf61a49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/documents.rst
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,9 @@ Document
from the original PDF by DocumentCloud.

.. method:: get_errors()

Returns a list containing entries for each error on the document.

>>> new = client.documents.upload("https://www.launchcamden.com/wp-content/uploads/2023/08/7.13.23_01002.pdf")
>>> client.documents.get(new.id).get_errors()
[{'id': 96136, 'created_at': datetime.datetime(2023, 8, 30, 16, 28, 8, 594859), 'message': '404 Client Error: Not Found for url: https://www.launchcamden.com/wp-content/uploads/2023/08/7.13.23_01002.pdf'}]
Expand Down

0 comments on commit cf61a49

Please sign in to comment.