Added a check to ensure the data is not None. This shouldn't happen that often yet it seems to do so, why is your API so shitty DA?
This commit is contained in:
parent
c560bc4210
commit
540ecf86fb
1 changed files with 2 additions and 0 deletions
|
@ -77,6 +77,8 @@ class Deviantart:
|
|||
if result is None:
|
||||
params['username'] = da_name
|
||||
data = await utils.request(self.base_url, payload=params)
|
||||
if data is None:
|
||||
continue
|
||||
|
||||
result = data['results'][0]
|
||||
cache[da_name] = result
|
||||
|
|
Loading…
Reference in a new issue