fix(aurora): fixed a typeerror in Moderation.log()

This commit is contained in:
Seaswimmer 2024-05-24 03:51:43 -04:00
parent 0411e3dab7
commit 51d3245703
Signed by untrusted user: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -251,7 +251,10 @@ class Moderation(AuroraGuildModel):
end_timestamp = None
if not expired:
expired = bool(timestamp > end_timestamp)
if end_timestamp:
expired = bool(timestamp > end_timestamp)
else:
expired = False
if reason == "NULL":
reason = None