1
0
Fork 0
mirror of synced 2024-06-26 10:10:44 +12:00

Added an extra check, in case user is subscribed to no one

This commit is contained in:
Phxntxm 2016-10-07 21:03:00 -05:00
parent 44d25dc140
commit 90b93b6010

View file

@ -130,7 +130,7 @@ class Deviantart:
r_filter = {'member_id': ctx.message.author.id}
content = await config.get_content('deviantart', r_filter)
if content is None:
if content is None or content[0]['subbed'] is None:
await self.bot.say("You are not subscribed to anyone at the moment!")
elif username in content[0]['subbed']:
sub_list = content[0]['subbed'].remove(username)