send error to relay group if sending outside message fails
This commit is contained in:
parent
68e1003046
commit
b899b6c3eb
|
@ -194,7 +194,11 @@ class RelayPlugin:
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
""":TODO don't forward if message is the explanation message"""
|
""":TODO don't forward if message is the explanation message"""
|
||||||
|
try:
|
||||||
outside_chat.send_msg(message)
|
outside_chat.send_msg(message)
|
||||||
|
except Exception as e:
|
||||||
|
self.reply(message.chat, "Sending message failed.", quote=message)
|
||||||
|
raise e
|
||||||
|
|
||||||
def forward_to_relay_group(self, message: deltachat.Message, started_by_crew=False):
|
def forward_to_relay_group(self, message: deltachat.Message, started_by_crew=False):
|
||||||
"""forward a request to a relay group; create one if it doesn't exist yet."""
|
"""forward a request to a relay group; create one if it doesn't exist yet."""
|
||||||
|
|
Loading…
Reference in a new issue