[deviantart] fix 429 handling if 'fatal' is False (closes #424)

This commit is contained in:
Mike Fährmann
2019-09-25 21:16:35 +02:00
parent 913460240d
commit 80c2104fb5

View File

@@ -965,7 +965,7 @@ class DeviantartAPI():
if self.delay > self.delay_min:
self.delay -= 1
return data
if not fatal:
if not fatal and status != 429:
return None
if data.get("error_description") == "User not found.":
raise exception.NotFoundError("user or group")