Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scanpypi: rework download_package error handling
Some packages don't provide source archive but only a wheel file. In this case download variable is not defined. So define this variable at the very beginning and check whether it is None after searching for source archives in the metadata. Bonus: fix PEP8 issue with wrong indentation. Signed-off-by: Yegor Yefremov <[email protected]> Signed-off-by: Peter Korsgaard <[email protected]>
- Loading branch information