Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ikiril01 opened this issue Oct 21, 2014 · 0 comments
Open
Labels

Comments

@ikiril01
Copy link
Member

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
@ikiril01 ikiril01 added the bug label Oct 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant