Bug 9016: (follow-up) treat missing transports for predue and item due notices as...
authorGalen Charlton <gmc@esilibrary.com>
Fri, 2 May 2014 21:01:45 +0000 (21:01 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 2 May 2014 21:01:45 +0000 (21:01 +0000)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
misc/cronjobs/advance_notices.pl

index d81ad89..405b0e1 100755 (executable)
@@ -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;
             }
         }