View | Details | Raw Unified | Return to bug 29697
Collapse All | Expand All

(-)a/Koha/BiblioUtils.pm (-3 / +2 lines)
Lines 145-156 sub get_all_biblios_iterator { Link Here
145
        while (1) {
145
        while (1) {
146
            my $row = $rs->next();
146
            my $row = $rs->next();
147
            return if !$row;
147
            return if !$row;
148
            my $marc = $row->metadata->record({ embed_items => 1 });
149
            my $next = eval {
148
            my $next = eval {
149
                my $marc = $row->metadata->record({ embed_items => 1 });
150
                $class->new($marc, $row->biblionumber);
150
                $class->new($marc, $row->biblionumber);
151
            };
151
            };
152
            if ($@) {
152
            if ($@) {
153
                warn "Something went wrong reading record for biblio $row->biblionumber: $@\n";
153
                warn sprintf "Something went wrong reading record for biblio %s: %s\n", $row->biblionumber, $@;
154
                next;
154
                next;
155
            }
155
            }
156
            return $next;
156
            return $next;
157
- 

Return to bug 29697