Skip to content

Commit 5cd7f65

Browse files
ilopezlunadoringeman
authored andcommitted
Do not assume a model always has a tag (docker#86)
1 parent d79964d commit 5cd7f65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/distribution/distribution/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func (c *Client) ListModels() ([]types.Model, error) {
200200
// Read the models
201201
model, err := c.store.Read(modelInfo.ID)
202202
if err != nil {
203-
c.log.Warnf("Failed to read model with tag %s: %v", modelInfo.Tags[0], err)
203+
c.log.Warnf("Failed to read model with ID %s: %v", modelInfo.ID, err)
204204
continue
205205
}
206206
result = append(result, model)

0 commit comments

Comments
 (0)