summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/gelbooru.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/gelbooru.py')
-rw-r--r--gallery_dl/extractor/gelbooru.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/gallery_dl/extractor/gelbooru.py b/gallery_dl/extractor/gelbooru.py
index b152885..f32059e 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: