From f728dddde6bd664e9d910698eec5c3b65be845c8 Mon Sep 17 00:00:00 2001
From: Web Admin <w3adm@sanger.ac.uk>
Date: Tue, 3 May 2005 15:47:18 +0000
Subject: [PATCH] report mistranslation as a warning rather than an error so
 do_XXX_dump utilities don't crash

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

diff --git a/modules/Bio/EnsEMBL/Transcript.pm b/modules/Bio/EnsEMBL/Transcript.pm
index 0bc391a481..31690c6f56 100755
--- a/modules/Bio/EnsEMBL/Transcript.pm
+++ b/modules/Bio/EnsEMBL/Transcript.pm
@@ -1295,7 +1295,9 @@ sub get_all_translateable_Exons {
     # Adjust to translation start if this is the start exon
     if ($ex == $start_exon ) {
       if ($t_start < 1 or $t_start > $length) {
-        throw("Translation start '$t_start' is outside exon $ex length=$length");
+#        throw("Translation start '$t_start' is outside exon $ex length=$length");
+        warn("WARN: Translation start '$t_start' is outside exon $ex length=$length");
+	return [];
       }
       $adjust_start = $t_start - 1;
     }
-- 
GitLab