diff --git a/internal/neofs/tree.go b/internal/neofs/tree.go index 01761bc36..ac212bd82 100644 --- a/internal/neofs/tree.go +++ b/internal/neofs/tree.go @@ -614,6 +614,9 @@ func (c *TreeClient) getSubTreeByPrefix(ctx context.Context, cnrID *cid.ID, tree subTree, err := c.getSubTree(ctx, cnrID, treeID, rootID, 1) if err != nil { + if errors.Is(err, layer.ErrNodeNotFound) { + return nil, nil + } return nil, err }