Skip to content

Commit

Permalink
fix buildinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiNino committed Sep 18, 2024
1 parent 96d5cd7 commit 33618a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artifactory/commands/python/twine.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (tc *TwineCommand) uploadAndCollectBuildInfo() error {
}

defer func() {
if buildInfo != nil {
if buildInfo != nil && err != nil {
err = errors.Join(err, buildInfo.Clean())
}
}()
Expand Down

0 comments on commit 33618a2

Please sign in to comment.