[gelbooru] update 'api-key' & 'user-id' docs to match 'gelbooru_v02'
This commit is contained in:
@@ -2965,8 +2965,9 @@ Type
|
||||
Default
|
||||
``null``
|
||||
Description
|
||||
Values from the API Access Credentials section found at the bottom of your
|
||||
`Account Options <https://gelbooru.com/index.php?page=account&s=options>`__
|
||||
Values from the `API Access Credentials` section
|
||||
found at the bottom of your account's
|
||||
`Options <https://gelbooru.com/index.php?page=account&s=options>`__
|
||||
page.
|
||||
|
||||
|
||||
|
||||
@@ -35,9 +35,8 @@ class GelbooruBase():
|
||||
data = self.request_json(url, params=params)
|
||||
except exception.HttpError as exc:
|
||||
if exc.status == 401:
|
||||
raise exception.AuthorizationError(
|
||||
f"'api-key' and 'user-id' required "
|
||||
f"({exc.status}: {exc.response.reason})")
|
||||
raise exception.AuthRequired(
|
||||
"'api-key' & 'user-id'", "the API")
|
||||
raise
|
||||
|
||||
if not key:
|
||||
|
||||
Reference in New Issue
Block a user