From: Matt S Trout Date: Wed, 24 Jun 2009 21:12:06 +0000 (+0100) Subject: skip damaged posts X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c846c7592a6fcaa4bd2b027db5456c5773ad0cb8;p=engit%2FIron-Munger.git skip damaged posts --- diff --git a/lib/IronMunger/PlaggerLoader.pm b/lib/IronMunger/PlaggerLoader.pm index e3ef197..33db915 100644 --- a/lib/IronMunger/PlaggerLoader.pm +++ b/lib/IronMunger/PlaggerLoader.pm @@ -46,6 +46,7 @@ class IronMunger::PlaggerLoader { while (my $post_raw = $csv->getline($io)) { my %post_spec; @post_spec{qw{url at}} = @{$post_raw}[@col_order{qw{url at}}]; + next unless $post_spec{url} && $post_spec{at}; push(@post_specs, \%post_spec); } return \@post_specs;