diff --git a/docs/configuration.rst b/docs/configuration.rst index 8da8c7dc..3ea20c29 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -2965,8 +2965,9 @@ Type Default ``null`` Description - Values from the API Access Credentials section found at the bottom of your - `Account Options `__ + Values from the `API Access Credentials` section + found at the bottom of your account's + `Options `__ page. diff --git a/gallery_dl/extractor/gelbooru.py b/gallery_dl/extractor/gelbooru.py index b1528850..f32059e5 100644 --- a/gallery_dl/extractor/gelbooru.py +++ b/gallery_dl/extractor/gelbooru.py @@ -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: