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)
try:
chat.send_msg(our_reply) chat.send_msg(our_reply)
except ValueError:
print(text)