Commit 6d0bc22c authored by Andy Yates's avatar Andy Yates
Browse files

modifying get_DBAdaptor() to only throw an error if $no_alias_check was on

parent e5c2c516
......@@ -583,7 +583,9 @@ sub get_DBAdaptor {
my $ispecies = $class->get_alias( $species, $no_alias_check );
if ( !defined($ispecies) ) {
throw("Can not find internal name for species '$species'");
if(! $no_alias_check) {
throw("Can not find internal name for species '$species'");
}
}
else { $species = $ispecies }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment