Python: fix update script in case no PyPI releases are available for a given version

This commit is contained in:
Frederik Rietdijk 2017-07-03 20:18:47 +02:00
parent 753aab1494
commit 54eeab4da0

View File

@ -91,7 +91,8 @@ def _get_latest_version_pypi(package, extension):
if release['filename'].endswith(extension):
# TODO: In case of wheel we need to do further checks!
sha256 = release['digests']['sha256']
else:
sha256 = None
return version, sha256