fix (Ticket): Make default _revert a no-op.

Fixes an issue where pardoning a non-revertable ticket throws an exception.
This commit is contained in:
2021-10-19 19:58:04 +03:00
parent a044071387
commit 7c2a6c39a7

View File

@@ -353,9 +353,10 @@ class Ticket:
Method used to revert the ticket action, e.g. unban or remove mute role. Method used to revert the ticket action, e.g. unban or remove mute role.
Generally called by `pardon` and `_expire`. 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): async def _expire(self):
""" """