Skip to content

Commit

Permalink
fix: Fix semantic version parsing for unkown latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
achillesrasquinha committed Feb 6, 2019
1 parent f61dec8 commit d5c1540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pipupgrade/commands/__init__.py
Expand Up @@ -130,7 +130,7 @@ def command(requirements = [ ], latest = False, self = False, user = False, chec

try:
diff_type = semver.difference(package.current_version, package.latest_version)
except ValueError:
except (TypeError, ValueError):
pass

table.insert([
Expand Down

0 comments on commit d5c1540

Please sign in to comment.