From 6d0bc22cdceb8347fa9801a0f9ac6238af6e4c4f Mon Sep 17 00:00:00 2001
From: Andrew Yates <ayates@ebi.ac.uk>
Date: Tue, 8 Nov 2011 17:03:19 +0000
Subject: [PATCH] modifying get_DBAdaptor() to only throw an error if
 $no_alias_check was on

---
 modules/Bio/EnsEMBL/Registry.pm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/Bio/EnsEMBL/Registry.pm b/modules/Bio/EnsEMBL/Registry.pm
index 72552f4d01..c4d3771afc 100644
--- a/modules/Bio/EnsEMBL/Registry.pm
+++ b/modules/Bio/EnsEMBL/Registry.pm
@@ -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 }
 
-- 
GitLab