Skip to content

Commit 247d066

Browse files
fix: handle None type for source file attributes in EnvSpec (#21)
1 parent 135bbef commit 247d066

File tree

1 file changed

+2
-1
lines changed
  • snakemake_interface_software_deployment_plugins

1 file changed

+2
-1
lines changed

snakemake_interface_software_deployment_plugins/tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ def _get_cached_env_spec(self):
136136
spec = deepcopy(self.get_env_spec())
137137
for attr in spec.source_path_attributes():
138138
source_file = getattr(spec, attr)
139-
source_file.cached = source_file.path_or_uri
139+
if source_file is not None:
140+
source_file.cached = source_file.path_or_uri
140141
return spec
141142

142143
def _get_env(self, tmp_path) -> EnvBase:

0 commit comments

Comments
 (0)