skip damaged posts
Matt S Trout [Wed, 24 Jun 2009 21:12:06 +0000 (22:12 +0100)]
lib/IronMunger/PlaggerLoader.pm

index e3ef197..33db915 100644 (file)
@@ -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;