diff --git a/src/python_inspector/package_data.py b/src/python_inspector/package_data.py index 6b0a9733..936be721 100644 --- a/src/python_inspector/package_data.py +++ b/src/python_inspector/package_data.py @@ -122,6 +122,8 @@ async def get_pypi_data_from_purl( def choose_single_wheel(wheel_urls: List[str]) -> Optional[str]: + # fix Issue 240 - TypeError: '<' not supported between instances of 'str' and 'NoneType' + wheel_urls = [url for url in wheel_urls if url is not None] """ Sort wheel urls descendingly and return the first one """