From b967a82f1c25768e5bca1bb46cfa44fc5f25b353 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 2 May 2014 21:01:45 +0000 Subject: [PATCH] Bug 9016: (follow-up) treat missing transports for predue and item due notices as warnings, not fatal errors Signed-off-by: Galen Charlton --- misc/cronjobs/advance_notices.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/cronjobs/advance_notices.pl b/misc/cronjobs/advance_notices.pl index d81ad89786..405b0e1df0 100755 --- a/misc/cronjobs/advance_notices.pl +++ b/misc/cronjobs/advance_notices.pl @@ -262,7 +262,7 @@ UPCOMINGITEM: foreach my $upcoming ( @$upcoming_dues ) { substitute => { 'items.content' => $titles }, message_transport_type => $transport, } ) - or die "no letter of type '$letter_type' found. Please see sample_notices.sql"; + or warn "no letter of type '$letter_type' found. Please see sample_notices.sql"; push @letters, $letter; } } @@ -298,7 +298,7 @@ UPCOMINGITEM: foreach my $upcoming ( @$upcoming_dues ) { substitute => { 'items.content' => $titles }, message_transport_type => $transport, } ) - or die "no letter of type '$letter_type' found. Please see sample_notices.sql"; + or warn "no letter of type '$letter_type' found. Please see sample_notices.sql"; push @letters, $letter; } } -- 2.39.2