1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

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:
Phxntxm 2017-02-12 16:09:41 -06:00
parent c560bc4210
commit 540ecf86fb

View file

@ -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