Skip to content

Commit 043fd5a

Browse files
committed
Fix bug when logkey cant be resolved
1 parent 41a0d8d commit 043fd5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/thread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ async def _close(
317317
"{closer.mention} has closed this Modmail thread.",
318318
)
319319

320-
message = message.format(closer=closer, loglink=log_url, logkey=log_data["key"])
320+
message = message.format(closer=closer, loglink=log_url, logkey=log_data["key"] if log_data else None)
321321

322322
embed.description = message
323323
footer = self.bot.config.get(

0 commit comments

Comments
 (0)