Skip to content

Commit

Permalink
Update nf_core/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Hörtenhuber <mashehu@users.noreply.github.com>
  • Loading branch information
mirpedrol and mashehu authored Oct 2, 2024
1 parent b8b0c7b commit 1ac4e06
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions nf_core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1139,11 +1139,7 @@ def load_tools_config(directory: Union[str, Path] = ".") -> Tuple[Optional[Path]
wf_config = fetch_wf_config(Path(directory))
if nf_core_yaml_config["repository_type"] == "pipeline" and wf_config:
# Retrieve information if template from config file is empty
config_template_keys = (
tools_config["template"].keys()
if "template" in tools_config and tools_config["template"] is not None
else []
)
config_template_keys = tools_config.get('template', {}).keys()
if nf_core_yaml_config.template is None:
# The .nf-core.yml file did not contain template information
nf_core_yaml_config.template = NFCoreTemplateConfig(
Expand Down

0 comments on commit 1ac4e06

Please sign in to comment.