mirror of https://github.com/M66B/FairEmail.git
AI rule action error handling
This commit is contained in:
parent
7c4b07ea0f
commit
248b2382bc
|
@ -1571,7 +1571,13 @@ public class EntityRule {
|
|||
return true;
|
||||
}
|
||||
|
||||
try {
|
||||
message.preview = AI.getSummaryText(context, message);
|
||||
} catch (Throwable ex) {
|
||||
message.error = Log.formatThrowable(ex);
|
||||
db.message().setMessageError(message.id, message.error);
|
||||
return false;
|
||||
}
|
||||
|
||||
db.message().setMessageContent(message.id, message.content, message.language, message.plain_only, message.preview, message.warning);
|
||||
db.message().setMessageNotifying(message.id, 0);
|
||||
|
|
Loading…
Reference in New Issue