Skip to content

Commit

Permalink
Restore this code that should prevent the string has no attribute upd…
Browse files Browse the repository at this point in the history
…ate bug.
  • Loading branch information
matteius authored and oz123 committed Nov 8, 2023
1 parent 59a0c89 commit f0a8075
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pipenv/routines/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ def do_lock(
lockfile_categories.insert(0, "default")
# Create the lockfile.
lockfile = project.lockfile(categories=lockfile_categories)
# for category in lockfile_categories:
# for k, v in lockfile.get(category, {}).copy().items():
# if not hasattr(v, "keys"):
# del lockfile[category][k]
for category in lockfile_categories:
for k, v in lockfile.get(category, {}).copy().items():
if not hasattr(v, "keys"):
del lockfile[category][k]

# Resolve package to generate constraints before resolving other categories
for category in lockfile_categories:
Expand Down

0 comments on commit f0a8075

Please sign in to comment.