diff --git a/CHANGELOG.md b/CHANGELOG.md index 25cd921..35738c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.5.0 - Unreleased] +## [0.4.1] + +### Changed +- add default values for `categorized_package_data` to avoid crash on packages not available on pypi + ## [0.4.0] ### Added @@ -53,6 +58,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Initial Release [0.5.0 - Unreleased]: https://github.com/nezhar/updatable +[0.4.1]: https://pypi.org/project/updatable/0.4.1/ [0.4.0]: https://pypi.org/project/updatable/0.4.0/ [0.3.1]: https://pypi.org/project/updatable/0.3.1/ [0.3.0]: https://pypi.org/project/updatable/0.3.0/ diff --git a/updatable/__version__.py b/updatable/__version__.py index 588460d..9999d3b 100644 --- a/updatable/__version__.py +++ b/updatable/__version__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -__version__ = "0.5.0" +__version__ = "0.4.1" diff --git a/updatable/utils.py b/updatable/utils.py index 1ea1ed5..5dbe81a 100644 --- a/updatable/utils.py +++ b/updatable/utils.py @@ -237,7 +237,13 @@ def get_package_update_list(package_name, version): # Information about packages newer_releases = 0 pre_releases = 0 - categorized_package_data = {} + categorized_package_data = { + 'major_updates': [], + 'minor_updates': [], + 'patch_updates': [], + 'pre_release_updates': [], + 'non_semantic_versions': [], + } if package_data: latest_release = package_data['info']['version']