Skip to content

Commit

Permalink
Fix locker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ashnair1 committed Mar 2, 2022
1 parent f6101c9 commit e0f4af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poetry/packages/locker.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ def _dump_package(self, package: Package) -> dict:
if package.source_resolved_reference:
data["source"]["resolved_reference"] = package.source_resolved_reference

if package.source_subdirectory:
if hasattr(package, "source_subdirectory"):
data["source"]["source_subdirectory"] = package.source_subdirectory

if package.source_type in ["directory", "git"]:
Expand Down

0 comments on commit e0f4af4

Please sign in to comment.