From 1412a2e68484b32094321de8d4a4f1598afc9923 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Sat, 17 Dec 2022 19:16:29 +0300 Subject: [PATCH] Fix error again --- minearchy_bot/cogs/misc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minearchy_bot/cogs/misc.py b/minearchy_bot/cogs/misc.py index 0d6614b..8c7c9e0 100644 --- a/minearchy_bot/cogs/misc.py +++ b/minearchy_bot/cogs/misc.py @@ -100,10 +100,10 @@ class Miscellaneous( else: for thing, overwrites in channel.overwrites.items(): - parent_overwrites = channel.category.overwrites[thing] + parent_overwrites = channel.category.overwrites.get(thing) allows, denies = overwrites.pair() - parent_allows, parent_denies = parent_overwrites.pair() + parent_allows, parent_denies = parent_overwrites.pair() if parent_overwrites else ((), ()) for allow in allows: if allow not in parent_allows: