Skip to content

Commit

Permalink
Quick fix for Keyerror when cases didn't match
Browse files Browse the repository at this point in the history
  • Loading branch information
realiti4 committed Sep 1, 2021
1 parent d4a79f6 commit 578885d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion pip_upgrade/dependencies_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ def get_dependencies(self):
current_version = pkg_dict['version']
latest_version = pkg_dict['latest_version']

pkg_store = self.dict[pkg_name]
try:
pkg_store = self.dict[pkg_name]
except:
try:
pkg_store = self.dict[pkg_name.lower()]
except Exception as e:
raise e

pkg_store.current_version = current_version
pkg_store.latest_version = latest_version

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="pip-upgrade-tool",
version="0.5.1",
version="0.5.2",
author="Onur Cetinkol",
author_email="realiti44@gmail.com",
description="An easy tool for upgrading all of your packages while not breaking dependencies",
Expand Down

0 comments on commit 578885d

Please sign in to comment.