From 90b93b6010a492c309f34c3431fb642aee7ded60 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Fri, 7 Oct 2016 21:03:00 -0500 Subject: [PATCH] Added an extra check, in case user is subscribed to no one --- cogs/da.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/da.py b/cogs/da.py index 4726f5b..aef620a 100644 --- a/cogs/da.py +++ b/cogs/da.py @@ -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)