diff --git a/nf_core/subworkflows/create.py b/nf_core/subworkflows/create.py index 7181498ef5..481bd1ea94 100644 --- a/nf_core/subworkflows/create.py +++ b/nf_core/subworkflows/create.py @@ -9,7 +9,6 @@ import os import yaml -from packaging.version import parse as parse_version import nf_core import nf_core.components.components_create @@ -114,7 +113,7 @@ def create(self): pytest_modules_yml = dict(sorted(pytest_modules_yml.items())) with open(os.path.join(self.directory, "tests", "config", "pytest_modules.yml"), "w") as fh: yaml.dump(pytest_modules_yml, fh, sort_keys=True, Dumper=nf_core.utils.custom_yaml_dumper()) - except FileNotFoundError as e: + except FileNotFoundError: raise UserWarning("Could not open 'tests/config/pytest_modules.yml' file!") new_files = list(self.file_paths.values())