Skip to content

Commit

Permalink
Merge pull request #13 from JulienPalard/issue-12
Browse files Browse the repository at this point in the history
Filter out None from DetectedRequirement.parse
  • Loading branch information
carlio authored Jun 23, 2017
2 parents a73d27c + ca70cc4 commit 0527615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requirements_detector/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def from_setup_py(setup_file):
for req in walker.get_requires():
requirements.append(DetectedRequirement.parse(req, setup_file))

return requirements
return [requirement for requirement in requirements if requirement is not None]


def from_requirements_txt(requirements_file):
Expand Down

0 comments on commit 0527615

Please sign in to comment.