Skip to content

Commit

Permalink
feat: error_handling_invalid_auth should raise when invalid auth given
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkaroid committed May 12, 2022
1 parent 91b1772 commit a8e0104
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions booru/utils/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class Api:
e_handling_sameval (str): The error message for the same values.
e_handling_cantparse (str): The error message for the parsing.
e_handling_null (str): The error message for the null.
e_handling_invalid_auth (str): The error message for the invalid auth.
"""

def __init__(
Expand Down Expand Up @@ -73,6 +74,7 @@ def __init__(
self.error_handling_sameval = "block values should not be hit to the query"
self.error_handling_cantparse = "failed to get data, the api is misleading"
self.error_handling_null = "no results, make sure you spelled everything right"
self.error_handling_invalid_auth = "invalid api key or login"
self.headers = BASE_headers
self.behoimi_bypass = BYPASS_headers

Expand Down

0 comments on commit a8e0104

Please sign in to comment.