fix(aurora): fixed a TypeError whenever an expiry_handler function is called
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 33s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 48s

This commit is contained in:
Seaswimmer 2024-08-13 01:26:50 -04:00
parent ad063062fb
commit a6124dd9ca
Signed by: cswimr
GPG key ID: 3813315477F26F82

View file

@ -1090,7 +1090,7 @@ class Aurora(commands.Cog):
other_num = 0 other_num = 0
for moderation in moderations: for moderation in moderations:
try: try:
num = await moderation.type.expiry_handler(self.bot, guild, moderation) num = await moderation.type.expiry_handler(moderation)
except NotImplementedError: except NotImplementedError:
logger.warning("Expiry handler not implemented for expirable moderation type %s", moderation.type.key) logger.warning("Expiry handler not implemented for expirable moderation type %s", moderation.type.key)
continue continue