TT#6702 do not die on fraud/credidwarning send mail errors

* simply print the send mail error occurrences instead
      of dying to allow the whole list to be processed

Change-Id: I82faa2ec863a8fcae8a220c937afcd61f483c0fd
changes/15/10115/1
Kirill Solomko 8 years ago
parent 3710a9dec4
commit 94266a5814

@ -140,7 +140,10 @@ sub main {
{ map { $_ => $balance->{$_} } qw(id cash_balance) };
}
if (@contracts) {
send_email($cwarning, \@contracts);
eval {
send_email($cwarning, \@contracts);
};
print $EVAL_ERROR if $EVAL_ERROR;
}
}
return;

@ -185,7 +185,10 @@ sub main {
if ($event->{interval_lock} > 0) {
lock_customer($event, $subscribers);
}
send_email($event, $subscribers);
eval {
send_email($event, $subscribers);
};
print $EVAL_ERROR if $EVAL_ERROR;
}
return;
}

@ -185,7 +185,10 @@ sub main {
if ($event->{interval_lock} > 0) {
lock_customer($event, $subscribers);
}
send_email($event, $subscribers);
eval {
send_email($event, $subscribers);
};
print $EVAL_ERROR if $EVAL_ERROR;
}
return;
}

Loading…
Cancel
Save