Skip to content

Conversation

@ameyyadav09
Copy link

The error is not in the addChild method of the workitem.
it's in the _addChildren method,
cur_child_ids = [cur_child.identifier for cur_child in cur_children]
at this line when we say cur_child.identifier, we will get error if cur_child is None.
This happens if the workitem doesn't have any children initially.

The issue is probably because we have used a list comprehension, which doesn't care if the iterable object is empty and that could be fixed with a simple check.

@dixudx
Copy link
Owner

dixudx commented Jun 29, 2017

Thanks for your work. This bug has already been fixed in commit 0f0c7bd.

Please pull development branch, which will be merged into master when 0.7.0 is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants