Catch when DA doesn't return any results for an artist
This commit is contained in:
parent
c86aeef09e
commit
51fb8fb4cc
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue