Skip to content

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

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", line477, inget_all_objectsforrelated_objinassociated_object.related_objects:
TypeError: 'NoneType'objectisnotiterable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions