fix(moderation): fixed unboundlocalerror

This commit is contained in:
Seaswimmer 2023-12-15 21:56:12 -05:00
parent c2c8644d43
commit 5a656ef9a0
Signed by untrusted user: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -1736,6 +1736,8 @@ class Moderation(commands.Cog):
resolved_by = '?'
if resolved_reason is None:
resolved_reason = 'Could not get resolve reason during moderation import.'
if resolve_timestamp is None:
resolve_timestamp = timestamp
changes = [
{
'type': "ORIGINAL",