From e94e55d380d6d991443551e57c1b5bcc43d635a0 Mon Sep 17 00:00:00 2001 From: hivetrending Date: Sun, 11 Jul 2021 14:09:23 -0700 Subject: [PATCH] Fix handling for vote-based tips --- pizza-bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pizza-bot.py b/pizza-bot.py index 362bd75..a237256 100644 --- a/pizza-bot.py +++ b/pizza-bot.py @@ -281,7 +281,7 @@ def hive_posts_stream(): continue # check if spanish language comment templates should be used - use_spanish_templates = ESP_BOT_COMMAND_STR in op['body'] + use_spanish_templates = 'body' in op.keys() and ESP_BOT_COMMAND_STR in op['body'] message_body = '%s asked to send a slice to %s' % (author_account, parent_author) post_discord_message(ACCOUNT_NAME, message_body)