From 0cb1f0646e74d771e5f2d202fc7ae7473103b082 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Tue, 9 Oct 2018 21:13:19 +0000 Subject: [PATCH] Disallow none target --- discordbot/titanembeds/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discordbot/titanembeds/utils.py b/discordbot/titanembeds/utils.py index 0ef463b..7eb9c71 100644 --- a/discordbot/titanembeds/utils.py +++ b/discordbot/titanembeds/utils.py @@ -194,6 +194,8 @@ def get_channels_list(guildchannels): overwrites = [] isTextChannel = isinstance(channel, discord.channel.TextChannel) for target, overwrite in channel.overwrites: + if not target: + continue if isinstance(target, discord.Role): type = "role" else: