log failing messages instead of crashing

This commit is contained in:
missytake 2024-09-19 14:37:53 +02:00
parent 35a96388b9
commit a66fa95a13
Signed by: missytake
GPG key ID: 04CC6658320518DF

View file

@ -94,4 +94,7 @@ def reply(
our_reply.quote = quote our_reply.quote = quote
if attachment: if attachment:
our_reply.set_file(attachment) our_reply.set_file(attachment)
chat.send_msg(our_reply) try:
chat.send_msg(our_reply)
except ValueError:
print(text)