Skip to content

Commit 8c81320

Browse files
committed
fix if/else error when no schema exists for CompositeDataElement
1 parent 18959f3 commit 8c81320

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydifact/syntax/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def validate(self, mandatory: bool = None, repeat: int = None) -> None:
272272
)
273273
# If data structure representation is not overridden, use
274274
# the default value from the schema
275-
if len(current_schema) > 2:
275+
elif len(current_schema) > 2:
276276
data_struct_representation = current_schema[2]
277277
else:
278278
data_struct_representation = getattr(TemplateClass, "repr", None)

0 commit comments

Comments
 (0)