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