Skip to content

Commit

Permalink
[bug] Only dereference into [tool.poetry] if defined (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
blast-hardcheese authored Feb 16, 2024
1 parent a040336 commit c3733c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/backends/python/grab.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func filterImports(ctx context.Context, foundPkgs map[string]bool, testPypiMap f
moduleRoots := []string{"."}
packageRoots := make(map[string]string)
pyproject, _ := readPyproject()
if pyproject != nil {
if pyproject != nil && pyproject.Tool.Poetry != nil {
for _, pkgCfg := range pyproject.Tool.Poetry.Packages {
pkgRoot := pkgCfg.Include
from := "."
Expand Down

0 comments on commit c3733c9

Please sign in to comment.