Skip to content

Commit

Permalink
Improve docstring formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
daviewales committed Sep 18, 2024
1 parent 32a1478 commit 5699fce
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/pmhclib/pmhc.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,16 +339,18 @@ def wait_for_extract(self, uuid: str, max_retries: int) -> bool:
return the same HTTP status (400) and JSON response when
trying to fetch the extract by UUID:
https://pmhc-mds.net/api/extract/{download_uuid}/fetch
{
"errors": {
"export_fetch": "Can not fetch extract for uuid
[123...]. Extract is not complete. Extract has
expired."
}
}
.. code-block:: text
https://pmhc-mds.net/api/extract/{download_uuid}/fetch
{
"errors": {
"export_fetch": "Can not fetch extract for uuid
[123...]. Extract is not complete. Extract has
expired."
}
}
For this reason, it's not sufficient to simply try the
download URL until we get a success code. If there is
a PMHC server error, we will end up retrying forever.
Expand Down

0 comments on commit 5699fce

Please sign in to comment.