Skip to content

Commit 0db1caa

Browse files
committed
Merge branch 'master' into develop
2 parents 7efc216 + 8fa302a commit 0db1caa

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lib/BioX/Workflow/Command/stats.pm

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use Number::Bytes::Human qw(format_bytes parse_bytes);
99
use File::Details;
1010
use File::Basename;
1111
use List::MoreUtils qw(uniq);
12+
use Try::Tiny;
1213

1314
extends qw( BioX::Workflow::Command );
1415

@@ -138,7 +139,7 @@ sub gen_row {
138139
my $sample = shift;
139140
my $sample_files = shift;
140141

141-
foreach my $file (@{$sample_files}) {
142+
foreach my $file ( @{$sample_files} ) {
142143

143144
my @trow = ();
144145

@@ -147,13 +148,13 @@ sub gen_row {
147148
push( @trow, $cond );
148149

149150
my $rel = '';
150-
$rel = $file ;
151+
$rel = $file;
151152
$rel = File::Spec->abs2rel($file) if $self->use_full;
152153

153154
my $basename = basename($file) unless $self->use_full;
154155

155156
#Add the filename
156-
push( @trow, $rel ) if $self->use_full;
157+
push( @trow, $rel ) if $self->use_full;
157158
push( @trow, $basename ) if !$self->use_full;
158159

159160
#Does the file exist?
@@ -220,7 +221,9 @@ sub iter_file_chunks {
220221

221222
after 'template_process' => sub {
222223
my $self = shift;
223-
$self->table_log->addRowLine();
224+
try {
225+
$self->table_log->addRowLine();
226+
}
224227
};
225228

226229
around 'print_process_workflow' => sub {

0 commit comments

Comments
 (0)