Skip to content

Commit

Permalink
Update status_handler signature and add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjacob committed Aug 11, 2024
1 parent c0c1f55 commit 727577c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion blackboard/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class BBForbiddenError(Exception):
pass


def status_handler(status_code: Any) -> NoReturn:
def status_handler(status_code: Any, response: Any) -> NoReturn:
match status_code:
case 400:
raise BBBadRequestError()
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Blackboard Learn API Client

pages/api
pages/blackboard
pages/exceptions


Indices and tables
Expand Down
5 changes: 5 additions & 0 deletions docs/pages/exceptions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Exceptions Reference
====================

.. automodule:: blackboard.exceptions
:members:

0 comments on commit 727577c

Please sign in to comment.