Skip to content

Fix VirtualCodebase bug - #22

Merged
pombredanne merged 4 commits into
mainfrom
resource-bug
Jun 10, 2021
Merged

Fix VirtualCodebase bug#22
pombredanne merged 4 commits into
mainfrom
resource-bug

Conversation

@pombredanne

Copy link
Copy Markdown
Member

If a scan contains a "size": null then creating a VirtualCodebase will fail with:

Traceback (most recent call last):
File "/commoncode/resource.py", line 903, in update_counts
resource._compute_children_counts(self, skip_filtered)
File "/commoncode/resource.py", line 1147, in _compute_children_counts
size_count += child.size
TypeError: unsupported operand type(s) for +=: 'int' and 'NoneType'

This PR is fixing this.
In addition this is bumping pinned requirements

Signed-off-by: Philippe Ombredanne pombredanne@nexb.com

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@pombredanne

Copy link
Copy Markdown
Member Author

All green! merging.

@pombredanne
pombredanne merged commit a1744eb into main Jun 10, 2021
@pombredanne
pombredanne deleted the resource-bug branch June 10, 2021 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant