Fix github issue and add error handling to PyPI release fetching
fix bug