Skip to content
Snippets Groups Projects
Commit 47582aae authored by Web Admin's avatar Web Admin
Browse files

stopped shout when set not defined

parent df27a496
No related branches found
No related tags found
No related merge requests found
......@@ -90,9 +90,12 @@ sub fetch_all_by_Slice_and_set_code {
my $max_len = 0;
foreach my $set_code (@_) {
my $set = $msa->fetch_by_code($set_code);
$max_len = $set->longest_feature() if($set->longest_feature > $max_len);
if(!$set) { warning("No misc_set with code [$set_code] exists") }
else { push @sets, $set->dbID; }
if($set) {
$max_len = $set->longest_feature if $set->longest_feature > $max_len;
push @sets, $set->dbID;
} else {
warning("No misc_set with code [$set_code] exists");
}
}
my $constraint;
if( @sets > 1 ) {
......
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