Python: fix update script in case no PyPI releases are available for a given version
This commit is contained in:
parent
753aab1494
commit
54eeab4da0
@ -91,7 +91,8 @@ def _get_latest_version_pypi(package, extension):
|
|||||||
if release['filename'].endswith(extension):
|
if release['filename'].endswith(extension):
|
||||||
# TODO: In case of wheel we need to do further checks!
|
# TODO: In case of wheel we need to do further checks!
|
||||||
sha256 = release['digests']['sha256']
|
sha256 = release['digests']['sha256']
|
||||||
|
else:
|
||||||
|
sha256 = None
|
||||||
return version, sha256
|
return version, sha256
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user