Skip to content

Commit

Permalink
Fix status handler type annotation and update tiny-api-client
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjacob committed Aug 19, 2024
1 parent c1ae540 commit da0f4a1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ verify_ssl = true
name = "pypi"

[packages]
tiny-api-client = ">=1.3.0"
tiny-api-client = ">=1.3.1"
pydantic = "==2.8.2"
pathvalidate = "==3.1.0"
python-dateutil = "==2.8.2"
Expand Down
26 changes: 13 additions & 13 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions blackboard/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ class BBForbiddenError(Exception):
pass


@staticmethod
def status_handler(status_code: Any, response: Any) -> NoReturn:
def status_handler(client: Any, status_code: Any, response: Any) -> NoReturn:
match status_code:
case 400:
raise BBBadRequestError()
Expand Down

0 comments on commit da0f4a1

Please sign in to comment.