Skip to content

Commit

Permalink
Handle not_ok explicitly.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmiegit committed Jan 15, 2024
1 parent 2dd2aed commit 02f0e14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yellowstone/wikidot.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ def ajax_module_connector(
return body
case "wrong_token7":
raise WikidotTokenError
case status:
case "not_ok":
raise WikidotError(response["message"])
case status:
raise WikidotError(status)

@cache
def site_url(self, site_slug: str) -> str:
Expand Down

0 comments on commit 02f0e14

Please sign in to comment.