Merge pull request #3069 from pior/fix-verbosity-var

Fix PIPENV_VERBOSITY parsing logic
This commit is contained in:
Tzu-ping Chung
2018-10-23 14:34:43 +08:00
committed by GitHub
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, TypeError):
if PIPENV_VERBOSE:
PIPENV_VERBOSITY = 1
elif PIPENV_QUIET: