Added an extra check, in case user is subscribed to no one
This commit is contained in:
parent
44d25dc140
commit
90b93b6010
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ class Deviantart:
|
||||||
r_filter = {'member_id': ctx.message.author.id}
|
r_filter = {'member_id': ctx.message.author.id}
|
||||||
content = await config.get_content('deviantart', r_filter)
|
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!")
|
await self.bot.say("You are not subscribed to anyone at the moment!")
|
||||||
elif username in content[0]['subbed']:
|
elif username in content[0]['subbed']:
|
||||||
sub_list = content[0]['subbed'].remove(username)
|
sub_list = content[0]['subbed'].remove(username)
|
||||||
|
|
Loading…
Reference in a new issue