Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
bruh
  • Loading branch information
AwkwardPeak7 committed Jul 7, 2024
1 parent c4c1996 commit 7a5cfe8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webnovel.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ def __api_request(self, path: str, payload: Optional[dict] = None) -> dict:
try:
return self.__request(path, payload).json()
except requests.exceptions.JSONDecodeError:
message = f"Malformed json response, likely captcha"
self.__send_webhook(f":warning::warning::warning: {message}")
raise Exception(message)
message = f"Malformed json response, likely captcha"
self.__send_webhook(f":warning::warning::warning: {message}")
raise Exception(message)

def __category_request(self, page: Optional[int] = None) -> dict:
payload: dict[str, int] = {
Expand Down

0 comments on commit 7a5cfe8

Please sign in to comment.