Skip to content

Commit

Permalink
Fix version_sort on None object
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming committed Apr 1, 2021
1 parent 0220e4a commit 5e392eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pythonfinder/pythonfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def find_all_python_versions(
if not isinstance(versions, Iterable):
versions = [versions]
# This list has already been mostly sorted on windows, we don't need to reverse it again
path_list = sorted(versions, key=version_sort, reverse=True)
path_list = sorted(filter(None, versions), key=version_sort, reverse=True)
path_map = {} # type: Dict[str, PathEntry]
for path in path_list:
try:
Expand Down

0 comments on commit 5e392eb

Please sign in to comment.