aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Eivind Teig <[email protected]>2020-03-09 09:18:17 +0100
committerGravatar GitHub <[email protected]>2020-03-09 09:18:17 +0100
commit0d56b0ae08f809fb9efebd5e5d011bf68b5940c7 (patch)
treeb6c2dd466fe37510e917b4982637177eb9fe73d4
parentMerge pull request #825 from python-discord/token-detection-fix (diff)
parentMerge branch 'master' into bug/mod/792/null-attachments (diff)
Merge pull request #822 from python-discord/bug/mod/792/null-attachments
ModLog: fix posting null attachments for deleted message logs
-rw-r--r--bot/cogs/moderation/modlog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/moderation/modlog.py b/bot/cogs/moderation/modlog.py
index 59ae6b587..81d95298d 100644
--- a/bot/cogs/moderation/modlog.py
+++ b/bot/cogs/moderation/modlog.py
@@ -67,7 +67,7 @@ class ModLog(Cog, name="ModLog"):
'embeds': [embed.to_dict() for embed in message.embeds],
'attachments': attachment,
}
- for message, attachment in zip_longest(messages, attachments)
+ for message, attachment in zip_longest(messages, attachments, fillvalue=[])
]
}
)