Skip to content

Commit 41d6b49

Browse files
authored
Handle missing PyPI packages properly as well. (#881)
Signed-off-by: Caleb Brown <[email protected]>
1 parent 32b06bc commit 41d6b49

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/pkgmanager/pypi.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ func getPyPIArchiveURL(pkgName, version string) (string, error) {
7373
return url.URL, nil
7474
}
7575
}
76-
// can't find source tarball
77-
return "", fmt.Errorf("source tarball not found for %s, version %s", pkgName, version)
76+
77+
// Return an empty string and no error if we can't find an archive URL.
78+
return "", nil
7879
}
7980

8081
var pypiPkgManager = PkgManager{

0 commit comments

Comments
 (0)