[deviantart] fix 429 handling if 'fatal' is False (closes #424)
This commit is contained in:
parent
913460240d
commit
80c2104fb5
@ -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…
x
Reference in New Issue
Block a user