fix(aurora): catch exceptions thrown inside of the expiry handler instead of just stopping the task
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 27s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 49s

This commit is contained in:
Seaswimmer 2024-09-08 12:40:38 -04:00
parent d4fe97f247
commit b91946abeb
Signed by: cswimr
GPG key ID: 456E21B886A39061

View file

@ -1133,6 +1133,9 @@ class Aurora(commands.Cog):
except NotImplementedError:
logger.warning("Expiry handler not implemented for expirable moderation type %s", moderation.type.key)
continue
except Exception as e: # pylint: disable=broad-except
logger.exception("Expiry handler failed for moderation %s with the type %s", moderation.id, moderation.type.key, exc_info=e)
continue
match moderation.type.key:
case "tempban":
unban_num += num