[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
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

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