revert previous commit (swept too much in)
[migration-tools.git] / fingerprinter
index dcf2e29..93df981 100755 (executable)
@@ -27,15 +27,7 @@ for my $file (@ARGV) {
     $batch->strict_off();
     $batch->warnings_off();
 
-    my $record;
-    while ( 1 ) {
-        eval { $record = $batch->next; };
-        if ($@) {
-            import MARC::File::XML;
-            print "bad record\n";
-            next;
-        }
-        last unless $record;
+    while ( $record = $batch->next ) {
         $count++; progress_ticker();
         my $marc = undef;
         unless ( defined $record )