From 7c2a6c39a786838d6d43235dac5b58457cb48110 Mon Sep 17 00:00:00 2001 From: Conatum Date: Tue, 19 Oct 2021 19:58:04 +0300 Subject: [PATCH] fix (Ticket): Make default `_revert` a no-op. Fixes an issue where pardoning a non-revertable ticket throws an exception. --- bot/modules/moderation/tickets/Ticket.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot/modules/moderation/tickets/Ticket.py b/bot/modules/moderation/tickets/Ticket.py index 3193a185..4d7ec5ec 100644 --- a/bot/modules/moderation/tickets/Ticket.py +++ b/bot/modules/moderation/tickets/Ticket.py @@ -353,9 +353,10 @@ class Ticket: Method used to revert the ticket action, e.g. unban or remove mute role. Generally called by `pardon` and `_expire`. - Must be overriden by the Ticket type, if they implement any revert logic. + May be overriden by the Ticket type, if they implement any revert logic. + Is a no-op by default. """ - raise NotImplementedError + return async def _expire(self): """