Skip to content

Commit

Permalink
don't fail if a process has no metadata schemas (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
denisri committed Nov 20, 2023
1 parent 963a044 commit 9cfe52d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions capsul/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1163,6 +1163,12 @@ def generate_paths(self, executable=None):
v = getattr(metadata, f.name, undefined)
self.dprint(" ", f.name, "=", repr(v))
metadata_modifications = self.metadata_modifications(executable)

if not hasattr(executable, "metadata_schemas"):
# print('executable has not metadata_schemas')
# don't fail, just do nothing
return

for schema, parameters in self.parameters_per_schema.items():
proc_meta = executable.metadata_schemas.get(schema)
params_meta = {}
Expand Down

0 comments on commit 9cfe52d

Please sign in to comment.