diff options
| author | 2020-07-24 10:39:21 +0200 | |
|---|---|---|
| committer | 2020-07-24 10:39:21 +0200 | |
| commit | 3aa33f3ec84a104ac13c0c60c21f4f149da5af78 (patch) | |
| tree | e795fa222ace43dd65d792a27a7aa1171f4661f3 | |
| parent | No need for all() in cog_check for AllowDenyLists. (diff) | |
Add sanity to partner and verification check in filtering.py.
| -rw-r--r-- | bot/cogs/filtering.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/filtering.py b/bot/cogs/filtering.py index b5b1c823a..98a60f489 100644 --- a/bot/cogs/filtering.py +++ b/bot/cogs/filtering.py @@ -473,8 +473,8 @@ class Filtering(Cog): # Is this invite allowed? guild_partnered_or_verified = ( - 'PARTNERED' in guild.get("features") - or 'VERIFIED' in guild.get("features") + 'PARTNERED' in guild.get("features", []) + or 'VERIFIED' in guild.get("features", []) ) invite_not_allowed = ( guild_id in guild_invite_blacklist # Blacklisted guilds are never permitted. |