1
0
Fork 0
mirror of synced 2024-09-28 07:21:16 +12:00

Catch when DA doesn't return any results for an artist

This commit is contained in:
Phxntxm 2017-02-27 17:25:33 -06:00
parent c86aeef09e
commit 51fb8fb4cc

View file

@ -79,6 +79,8 @@ class Deviantart:
data = await utils.request(self.base_url, payload=params)
if data is None:
continue
elif not data['results']:
continue
result = data['results'][0]
cache[da_name] = result