Commit 17d1ba26 authored by Will Spooner's avatar Will Spooner
Browse files

Added a catch for unknown logic_name

parent c11cbc4e
......@@ -584,7 +584,8 @@ sub reset_all_jobs_for_analysis {
my ($self, $logic_name) = @_;
my $analysis = $self->{'dba'}->get_AnalysisAdaptor->
fetch_by_logic_name($logic_name);
fetch_by_logic_name($logic_name)
|| die( "Cannot AnalysisAdaptor->fetch_by_logic_name($logic_name)");
$self->{'dba'}->get_AnalysisJobAdaptor->reset_all_jobs_for_analysis_id($analysis->dbID);
......
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