From ff3431011382c4596b58e0c358c5bce7cc2a97d0 Mon Sep 17 00:00:00 2001 From: Seaswimmer Date: Tue, 4 Jun 2024 16:52:19 -0400 Subject: [PATCH] fix(aurora): fixed a valueerror --- aurora/models/moderation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aurora/models/moderation.py b/aurora/models/moderation.py index c5ff023..28b4d73 100644 --- a/aurora/models/moderation.py +++ b/aurora/models/moderation.py @@ -166,7 +166,7 @@ class Moderation(AuroraGuildModel): @classmethod def from_result(cls, bot: Red, result: Iterable, guild_id: int) -> "Moderation": - if result[7] is not None: + if result[7] is not None and result[7] != "NULL": hours, minutes, seconds = map(int, result[7].split(':')) duration = timedelta(hours=hours, minutes=minutes, seconds=seconds) else: