Skip to content

Commit 620a3f2

Browse files
authored
Update package_data.py
Fix Issue 240
1 parent 9db72eb commit 620a3f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/python_inspector/package_data.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ async def get_pypi_data_from_purl(
122122

123123

124124
def choose_single_wheel(wheel_urls: List[str]) -> Optional[str]:
125+
# fix Issue 240 - TypeError: '<' not supported between instances of 'str' and 'NoneType'
126+
wheel_urls = [url for url in wheel_urls if url is not None]
125127
"""
126128
Sort wheel urls descendingly and return the first one
127129
"""

0 commit comments

Comments
 (0)