Skip to content
Snippets Groups Projects
Commit 1202b444 authored by Kieron Taylor's avatar Kieron Taylor :angry:
Browse files

Added undef return values in the event of not finding an accession for...

Added undef return values in the event of not finding an accession for fetch_by_dbID and fetch_by_accession.
parent a2ef48e4
No related branches found
No related tags found
No related merge requests found
......@@ -172,6 +172,10 @@ WHERE term.accession = ?);
\( $dbid, $name, $definition, $subsets, $ontology, $namespace ) );
$sth->fetch();
# early exit in the event of bad $accession
unless ($dbid) {return;}
$subsets ||= '';
my $term =
......@@ -667,6 +671,9 @@ WHERE term.term_id = ?);
) );
$sth->fetch();
unless ($accession) {return;}
$subsets ||= '';
my $term =
......
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