summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/smugmug.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/smugmug.py')
-rw-r--r--gallery_dl/extractor/smugmug.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/gallery_dl/extractor/smugmug.py b/gallery_dl/extractor/smugmug.py
index 2e6508c..be29dcf 100644
--- a/gallery_dl/extractor/smugmug.py
+++ b/gallery_dl/extractor/smugmug.py
@@ -259,11 +259,9 @@ class SmugmugAPI(oauth.OAuth1API):
if data["Code"] == 404:
raise exception.NotFoundError()
if data["Code"] == 429:
- self.log.error("Rate limit reached")
- else:
- self.log.error("API request failed")
- self.log.debug(data)
- raise exception.StopExtraction()
+ raise exception.StopExtraction("Rate limit reached")
+ self.log.debug(data)
+ raise exception.StopExtraction("API request failed")
def _expansion(self, endpoint, expands, params=None):
endpoint = self._extend(endpoint, expands)