[tumblr] improve error message for dashboard-only blogs (#7455)

This commit is contained in:
Mike Fährmann
2025-05-03 11:02:38 +02:00
parent e26ae210bd
commit a1fd329783

View File

@@ -474,8 +474,14 @@ class TumblrAPI(oauth.OAuth1API):
board = False board = False
if board: if board:
self.log.info("Run 'gallery-dl oauth:tumblr' " if self.api_key is None:
"to access dashboard-only blogs") self.log.info(
"Ensure your 'access-token' and "
"'access-token-secret' belong to the same "
"application as 'api-key' and 'api-secret'")
else:
self.log.info("Run 'gallery-dl oauth:tumblr' "
"to access dashboard-only blogs")
raise exception.AuthorizationError(error) raise exception.AuthorizationError(error)
raise exception.NotFoundError("user or post") raise exception.NotFoundError("user or post")