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

deviantart-rewrite
Mike Fährmann 5 years ago
parent 913460240d
commit 80c2104fb5
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -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")

Loading…
Cancel
Save