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