Skip to content

Collections within variants throws difficult to interpret error #159

Description

@baxelson12

Hi, greatly appreciate the hard work placed into this package! Today, I stumbled upon an issue where having collections within a given variant throws an error complaining about the list index ( list index out of range ). You can see the following image of the structure for reference:
image

It appears to be a recursion issue - I believe the following link contains the logic for determining the project heirarchy.

def traverse_tree(t):

Looks like it needs a stop condition once it finds a variant so it doesn't go deeper. The alternative solution could be checking the variants and throwing a more descriptive error that this isn't allowed, or adding this req to the docs.

Please let me know if you need anything else! My python is a bit rusty, but I may be able to submit a PR in my free time if necessary.

Regards,
Brad

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions