From 1b9499b4043c5884e84be2e70db63428f66d3ffb Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Mon, 31 Mar 2025 07:11:58 -0400 Subject: [PATCH] fix another silly mistake in post-poll.py for entries without emoji --- post-poll.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/post-poll.py b/post-poll.py index 8a5bc98..ad40fd4 100644 --- a/post-poll.py +++ b/post-poll.py @@ -43,6 +43,8 @@ if len(rows) < 2: exit(0) def media(name, emoji): + if emoji is None: + return {'text': name} emoji_obj = {'id': emoji} if emoji.isascii() and emoji.isdigit() else {'name': emoji} return {'text': name, 'emoji': emoji_obj}