Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
asafambar committed Mar 17, 2024
1 parent 2f50678 commit 30036b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/audit/sca/python/python.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func curationPassThroughError(auditPython *AuditPython, errFromPip error) (err e
if !auditPython.IsCurationCmd {
return
}
if strings.Contains(strings.ToLower(errFromPip.Error()), "http error 403") {
if errFromPip != nil && strings.Contains(strings.ToLower(errFromPip.Error()), "http error 403") {
err = errors.New("Failed to get dependencies tree for python project, Please verify pass-through enabled on the curated repos")
}
return
Expand Down

0 comments on commit 30036b8

Please sign in to comment.