Cast exception to string before passing to click.echo

Without this, tests were producing a traceback that isn't seen when
running pipenv from the console.
This commit is contained in:
Daniel Watkins
2017-12-22 13:40:59 -05:00
parent b5b85cd33b
commit dab22fd090
+1 -1
View File
@@ -516,7 +516,7 @@ def actually_resolve_reps(deps, index_lookup, markers_lookup, project, sources,
),
err=True)
click.echo(crayons.blue(e))
click.echo(crayons.blue(str(e)))
if 'no version found at all' in str(e):
click.echo(crayons.blue('Please check your version specifier and version number. See PEP440 for more information.'))