Skip to content
Browse files

Reverting the behavor of the index_dir method to silently do nothing …

…if it doesn't find files to index, making it work with GFF files without fasta again.
  • Loading branch information...
1 parent 85a7153 commit 116824eb6d8ff318fea9cd545c52ff87ac19af90 Ubuntu committed Jun 11, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 Bio/DB/IndexedBase.pm
View
2 Bio/DB/IndexedBase.pm
@@ -441,7 +441,7 @@ sub glob {
sub index_dir {
my ($self, $dir, $force_reindex) = @_;
my @files = glob( File::Spec->catfile($dir, $self->{glob}) );
- $self->throw("No suitable files found in $dir") if scalar @files == 0;
+ return if scalar @files == 0;
$self->{index_name} ||= File::Spec->catfile($dir, 'directory.index');
my $offsets = $self->_index_files(\@files, $force_reindex);
return $offsets;

0 comments on commit 116824e

Please sign in to comment.
Something went wrong with that request. Please try again.