diff options
| author | 2019-11-10 22:14:10 -0500 | |
|---|---|---|
| committer | 2019-11-10 22:14:10 -0500 | |
| commit | 0c73e982fa596da07f23b377621ab894a9e64884 (patch) | |
| tree | 96f6a40a5656c15a2ec7217a8a1efcff5827bcbb /gallery_dl/extractor/flickr.py | |
| parent | 40f5fe6edef268632d3bc484e85e5b37bad67bff (diff) | |
New upstream version 1.11.1upstream/1.11.1
Diffstat (limited to 'gallery_dl/extractor/flickr.py')
| -rw-r--r-- | gallery_dl/extractor/flickr.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gallery_dl/extractor/flickr.py b/gallery_dl/extractor/flickr.py index 73b8ec4..b71fc4d 100644 --- a/gallery_dl/extractor/flickr.py +++ b/gallery_dl/extractor/flickr.py @@ -423,14 +423,15 @@ class FlickrAPI(oauth.OAuth1API): params["api_key"] = self.api_key data = self.request(self.API_URL, params=params).json() if "code" in data: + msg = data.get("message") + self.log.debug("Server response: %s", data) if data["code"] == 1: raise exception.NotFoundError(self.extractor.subcategory) elif data["code"] == 98: - raise exception.AuthenticationError(data.get("message")) + raise exception.AuthenticationError(msg) elif data["code"] == 99: - raise exception.AuthorizationError() - self.log.error("API call failed: %s", data.get("message")) - raise exception.StopExtraction() + raise exception.AuthorizationError(msg) + raise exception.StopExtraction("API request failed: %s", msg) return data def _pagination(self, method, params, key="photos"): |
