From e2e2ac1ee10443ff7e4d9068063e9e77eb3ea413 Mon Sep 17 00:00:00 2001 From: frostming Date: Wed, 28 Mar 2018 11:20:20 +0800 Subject: [PATCH] Fix an error that was never hit --- pipenv/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipenv/core.py b/pipenv/core.py index 5fa05917..def2212f 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -290,7 +290,6 @@ def ensure_pipfile(validate=True, skip_requirements=False): if validate and project.virtualenv_exists and not PIPENV_SKIP_VALIDATION: # Ensure that Pipfile is using proper casing. p = project.parsed_pipfile - p.clear_pipfile_cache() changed = ensure_proper_casing(pfile=p) # Write changes out to disk. if changed: @@ -299,6 +298,7 @@ def ensure_pipfile(validate=True, skip_requirements=False): err=True, ) project.write_toml(p) + project.clear_pipfile_cache() def find_python_from_py(python):