From a66fa95a13215fb63e3b73919a2643b4d17e3a45 Mon Sep 17 00:00:00 2001 From: missytake Date: Thu, 19 Sep 2024 14:37:53 +0200 Subject: [PATCH] log failing messages instead of crashing --- src/remember_remember_bot/commands.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/remember_remember_bot/commands.py b/src/remember_remember_bot/commands.py index 8441a9e..8a3903a 100644 --- a/src/remember_remember_bot/commands.py +++ b/src/remember_remember_bot/commands.py @@ -94,4 +94,7 @@ def reply( our_reply.quote = quote if attachment: our_reply.set_file(attachment) - chat.send_msg(our_reply) + try: + chat.send_msg(our_reply) + except ValueError: + print(text)