[tumblr] improve error message for dashboard-only blogs (#7455)
This commit is contained in:
@@ -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")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user