Ensure pypi_version in outdated is a str

This commit is contained in:
Cooper Lees 2017-03-23 13:16:04 -07:00
parent e41b8b1959
commit 933431f63b
1 changed files with 3 additions and 1 deletions

View File

@ -133,7 +133,9 @@ def pip_version_check(session, options):
all_candidates = finder.find_all_candidates("pip")
if not all_candidates:
return
pypi_version = max(all_candidates, key=lambda c: c.version).version
pypi_version = str(
max(all_candidates, key=lambda c: c.version).version
)
# save that we've performed a check
state.save(pypi_version, current_time)