diff --git a/src/MGRAST/lib/resources/annotation.pm b/src/MGRAST/lib/resources/annotation.pm index cab29cd7..d818d293 100644 --- a/src/MGRAST/lib/resources/annotation.pm +++ b/src/MGRAST/lib/resources/annotation.pm @@ -375,12 +375,9 @@ sub print_batch { # pull data from indexed shock file my ($rec, $err) = $self->get_shock_file($node_id, undef, $self->mgrast_token, 'seek='.$seeks->[$i].'&length='.$lens->[$i]); if ($err) { - # cleanup and exit - $sth->finish; - $mgdb->_dbh->commit; - print "\nERROR downloading: $err\n"; - exit 0; - } + print "\nERROR downloading: $err\n"; + exit 0; + } chomp $rec; foreach my $line (split(/\n/, $rec)) { my @tabs = split(/\t/, $line);