From 53003efb89967d1283d53c0ed9db2a834b977716 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 16 Dec 2023 20:20:45 -0500 Subject: [PATCH] fix(moderation): fixed broken duration imports --- moderation/moderation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index f25109e..b9a5a20 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -1788,11 +1788,13 @@ class Moderation(commands.Cog): timestamp = round(case['timestamp'] / 1000) - if case['duration']: + if case['duration'] is not None: try: duration = timedelta(seconds=round(float(case['duration']) / 1000)) except OverflowError: continue + else: + duration = timedelta(seconds=0) if case['resolved']: resolved = 1