Merge pull request #3202 from jxltom/friendly-info-when-no-virtualenv-for-graph

Do not raise exception for pipenv graph when virtuanlenv is not created yet
This commit is contained in:
Dan Ryan
2018-11-12 13:51:34 -05:00
committed by GitHub
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
Fix a bug where exception is raised when run pipenv graph in a project without created virtualenv
+3
View File
@@ -2438,6 +2438,9 @@ def do_graph(bare=False, json=False, json_tree=False, reverse=False):
err=True,
)
sys.exit(1)
except RuntimeError:
pass
if reverse and json:
click.echo(
u"{0}: {1}".format(