From dbf21d5195e82e6d03816e92dd33b37c3c0577ca Mon Sep 17 00:00:00 2001 From: jxltom Date: Fri, 9 Nov 2018 09:56:04 +0800 Subject: [PATCH 1/2] Do not raise exception for pipenv graph when virtualenv does not exist --- pipenv/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pipenv/core.py b/pipenv/core.py index dabf065c..d3d05a0d 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -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( From 9d33d6323dc69199ed4ce536f14177ee963fac5e Mon Sep 17 00:00:00 2001 From: jxltom Date: Fri, 9 Nov 2018 10:00:29 +0800 Subject: [PATCH 2/2] Add bugfix news for issue 3201 --- news/3201.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 news/3201.bugfix diff --git a/news/3201.bugfix b/news/3201.bugfix new file mode 100644 index 00000000..01dba4f6 --- /dev/null +++ b/news/3201.bugfix @@ -0,0 +1 @@ +Fix a bug where exception is raised when run pipenv graph in a project without created virtualenv