From 3af688c37bb6a1373060eb8539b02a72be227de8 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 11 Mar 2018 09:01:17 -0400 Subject: [PATCH] catch edge case Signed-off-by: Kenneth Reitz --- pipenv/utils.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pipenv/utils.py b/pipenv/utils.py index 285352d9..09710899 100644 --- a/pipenv/utils.py +++ b/pipenv/utils.py @@ -306,7 +306,10 @@ def actually_resolve_reps(deps, index_lookup, markers_lookup, project, sources, pip_args = [] if sources: + print(sources) pip_args = prepare_pip_source_args(sources, pip_args) + print(pip_args) + exit() if verbose: print('Using pip: {0}'.format(' '.join(pip_args))) @@ -372,7 +375,10 @@ def venv_resolve_deps(deps, which, project, pre=False, verbose=False, clear=Fals if verbose: click.echo(c.out.split('RESULTS:')[0], err=True) - return json.loads(c.out.split('RESULTS:')[1].strip()) + try: + return json.loads(c.out.split('RESULTS:')[1].strip()) + except IndexError: + raise RuntimeError('There was a problem with locking.') def resolve_deps(deps, which, project, sources=None, verbose=False, python=False, clear=False, pre=False, allow_global=False):