Fix possible crash with error_tolerance == 2

This commit is contained in:
Frisk 2022-06-14 00:50:45 +02:00
parent d3223b51fd
commit b19706fcfd
No known key found for this signature in database
GPG key ID: 213F7C15068AF8AC

View file

@ -269,7 +269,8 @@ def rc_processor(change, changed_categories):
for revid in logparams.get("ids", []):
delete_messages(dict(revid=revid))
run_hooks(post_hooks, discord_message, metadata, context, change)
discord_message.finish_embed()
if discord_message:
discord_message.finish_embed()
send_to_discord(discord_message, metadata)