Skip to content

Commit

Permalink
Show All Exception Predicates in Docs (#332)
Browse files Browse the repository at this point in the history
Co-authored-by: Jack Desert <jack.desert>
Co-authored-by: Julien Danjou <[email protected]>
  • Loading branch information
jackdesert and jd authored May 27, 2022
1 parent da1bfc9 commit f6465c0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,21 @@ We can also use the result of the function to alter the behavior of retrying.
def might_return_none():
print("Retry with no wait if return value is None")

See also these methods:

.. testcode::

retry_if_exception
retry_if_exception_type
retry_if_not_exception_type
retry_unless_exception_type
retry_if_result
retry_if_not_result
retry_if_exception_message
retry_if_not_exception_message
retry_any
retry_all

We can also combine several conditions:

.. testcode::
Expand Down

0 comments on commit f6465c0

Please sign in to comment.