1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Check if the returned content is none first

This commit is contained in:
phxntxm 2017-03-07 17:32:33 -06:00
parent c6c7fbf73b
commit d9c654f73d

View file

@ -56,6 +56,9 @@ class Deviantart:
# People might sub to the same person, so lets cache every person and their last update
cache = {}
if not content:
return
try:
for entry in content:
user = discord.utils.get(self.bot.get_all_members(), id=entry['member_id'])