Skip to content

Commit

Permalink
Don't pass None as filename
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming committed Nov 10, 2018
1 parent 5e3f649 commit 82db4dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pipenv/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1693,11 +1693,11 @@ def do_install(
if requirements or package_args or project.pipfile_exists:
skip_requirements = True
# Don't attempt to install develop and default packages if Pipfile is missing
if not project.pipfile_exists and not (packages or dev) and not code:
if not (skip_lock or deploy):
raise exceptions.PipfileNotFound(project.pipfile_location)
elif (skip_lock or deploy) and not project.lockfile_exists:
raise exceptions.LockfileNotFound(project.lockfile_location)
if not project.pipfile_exists and not (packages or editable_packages or dev) and not code:
if not (ignore_pipfile or deploy):
raise exceptions.PipfileNotFound()
elif project.lockfile_exists:
raise exceptions.LockfileNotFound()
concurrent = not sequential
# Ensure that virtualenv is available.
ensure_project(
Expand Down

0 comments on commit 82db4dd

Please sign in to comment.