Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
9112b933
Commit
9112b933
authored
Apr 26, 2017
by
Matthieu Muffato
Browse files
bugfix: don't try to delete a parameter that doesn't exist
parent
bd20e0c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
modules/Bio/EnsEMBL/Hive/HivePipeline.pm
modules/Bio/EnsEMBL/Hive/HivePipeline.pm
+7
-4
No files found.
modules/Bio/EnsEMBL/Hive/HivePipeline.pm
View file @
9112b933
...
...
@@ -507,10 +507,13 @@ sub apply_tweaks {
print
"
Tweak.Show
\t
pipeline.param[
$param_name
] ::
\t
"
.
(
$hash_pair
?
$hash_pair
->
{'
param_value
'}
:
'
(missing_value)
')
.
"
\n
";
}
elsif
(
$operator
eq
'
#
')
{
if
(
$hash_pair
)
{
$need_write
=
1
;
$pwp_collection
->
forget_and_mark_for_deletion
(
$hash_pair
);
print
"
Tweak.Deleting
\t
pipeline.param[
$param_name
] ::
\t
"
.
stringify
(
$hash_pair
->
{'
param_value
'})
.
"
--> (missing value)
\n
";
}
else
{
print
"
Tweak.Deleting
\t
pipeline.param[
$param_name
] skipped (does not exist)
\n
";
}
}
else
{
$need_write
=
1
;
my
$new_value
=
destringify
(
$new_value_str
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment