Commits

Anonymous committed ef49522

Fixed argument validation in Section container (fix: dc21f264)

Comments (0)

Files changed (1)

dotconf/schema/containers.py

                 for subsection in subsections:
                     # Check for unique option:
                     if container.meta['unique']:
-                        if tuple(subsection.args.value) in args:
+                        if tuple(subsection.args) in args:
                             msg = 'section %s, section must be unique' % name
                             raise ValidationError(msg, position=subsection.position)
                         else:
-                            args.add(tuple(subsection.args.value))
+                            args.add(tuple(subsection.args))
                     # Container validation:
                     validated_subsection = container.validate(subsection)
                     validated_section.register(validated_subsection, name=name)