Fix PIPENV_VERBOSITY parsing logic

This commit is contained in:
Pior Bastida
2018-10-20 09:31:00 -04:00
parent 19609340b9
commit 3d5328aa0a
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
- Fix PIPENV_VERBOSITY parsing logic
+2 -2
View File
@@ -229,9 +229,9 @@ SESSION_IS_INTERACTIVE = bool(os.isatty(sys.stdout.fileno()))
# Internal, consolidated verbosity representation as an integer. The default
# level is 0, increased for wordiness and decreased for terseness.
PIPENV_VERBOSITY = os.environ.get("PIPENV_VERBOSITY", "")
if PIPENV_VERBOSITY.isdigit():
try:
PIPENV_VERBOSITY = int(PIPENV_VERBOSITY)
else:
except ValueError:
if PIPENV_VERBOSE:
PIPENV_VERBOSITY = 1
elif PIPENV_QUIET: