Skip to content

Commit

Permalink
Define a ClientError to fix Sphinx build errors (#352)
Browse files Browse the repository at this point in the history
Co-authored-by: Isaac Good <[email protected]>
  • Loading branch information
IsaacG and Isaac Good authored Apr 27, 2022
1 parent ff48431 commit a858965
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ exceptions, as in the cases here.

.. testcode::

class ClientError(Exception):
"""Some type of client error."""

@retry(retry=retry_if_exception_type(IOError))
def might_io_error():
print("Retry forever with no wait if an IOError occurs, raise any other errors")
Expand Down
2 changes: 2 additions & 0 deletions releasenotes/notes/sphinx_define_error-642c9cd5c165d39a.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
fixes: Sphinx build error where Sphinx complains about an undefined class.

0 comments on commit a858965

Please sign in to comment.