Skip to content

Commit

Permalink
cfg.Project can be nil, which panics (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
blast-hardcheese authored Sep 6, 2024
1 parent 9782e39 commit 7a4171a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/backends/python/python.go
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,10 @@ func makePythonUvBackend() api.LanguageBackend {
return nil
}

if cfg.Project == nil {
return nil
}

pkgs := map[api.PkgName]api.PkgSpec{}

for _, dep := range cfg.Project.Dependencies {
Expand Down

0 comments on commit 7a4171a

Please sign in to comment.