Skip to content

Links to inacitve items raise DoorstopError instead of DoorstopInfo #726

@opt12

Description

@opt12

Using version 3.0.2 on windows with Python 3.11

observed beahvior:
When running the doorstop command on a sample document tree, with some links to inactive items, the program stops with a DoorstopError:

checking item REQ-B-001...
ERROR: no item with UID: REQ-A-018

expected behavior:
The program should issue a DoorstopInfo saying: linked to inactive item: REQ-A-018

Source (from ItemValidator._get_issues_tree() in file item_validator.py):

            else:
                # check the parent item
                if not parent.active:
                    msg = "linked to inactive item: {}".format(parent)
                    yield DoorstopInfo(msg)

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions