Started working on moving to torch
This commit is contained in:
@@ -392,7 +392,7 @@ func (c *Context) GetModelFromId(id_path string) (*dbtypes.BaseModel, *Error) {
|
||||
}
|
||||
|
||||
model, err := dbtypes.GetBaseModel(c.Db, id)
|
||||
if err == dbtypes.ModelNotFoundError {
|
||||
if err == dbtypes.NotFoundError {
|
||||
return nil, c.SendJSONStatus(http.StatusNotFound, "Model not found")
|
||||
} else if err != nil {
|
||||
return nil, c.Error500(err)
|
||||
|
||||
Reference in New Issue
Block a user