diff --git a/models/issue.go b/models/issue.go index c740d8fec..e95faf916 100644 --- a/models/issue.go +++ b/models/issue.go @@ -146,7 +146,7 @@ func (issue *Issue) loadAttributes(e Engine) (err error) { if issue.Milestone == nil && issue.MilestoneID > 0 { issue.Milestone, err = getMilestoneByRepoID(e, issue.RepoID, issue.MilestoneID) - if err != nil { + if err != nil && !IsErrMilestoneNotExist(err) { return fmt.Errorf("getMilestoneByRepoID [repo_id: %d, milestone_id: %d]: %v", issue.RepoID, issue.MilestoneID, err) } }