fix(aurora): fixed a valueerror
This commit is contained in:
parent
3d2dabae08
commit
ff34310113
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue