Skip to content

Add none-type checking to get_all_objects/actions methods in Bundle #54

@ikiril01

Description

@ikiril01

We need to add None-type checking to some of the methods in the Bundle that return lists of all of the Actions/Objects, otherwise we'll get errors such as

    all_objects = self.get_all_objects(include_actions=True)
  File "python-maec\maec\bundle\bundle.py", line 477, in get_all_objects
    for related_obj in associated_object.related_objects:
TypeError: 'NoneType' object is not iterable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions