mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-11-12 14:31:02 +00:00
fix(api): handle concurrent snapshot deletion during list endpoint
This commit is contained in:
1 parent
516fcc6bfd
commit
74c13f73f2
1 file changed
+3
@@ -36,6 +36,9 @@ func apiSnapshotsList(c *gin.Context) {
|
||||
err := collection.ForEachSorted(SortMethodString, func(snapshot *deb.Snapshot) error {
|
||||
err := collection.LoadComplete(snapshot)
|
||||
if err != nil {
|
||||
if err == database.ErrNotFound {
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user