1
Fork 0
mirror of https://github.com/RGBCube/minearchy-bot synced 2025-07-27 00:47:44 +00:00

Fix error again

This commit is contained in:
RGBCube 2022-12-17 19:16:29 +03:00
parent 120516ef66
commit 1412a2e684

View file

@ -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: