Ignore missing comment for user notifications (#18954) (#19043)

This commit is contained in:
zeripath authored and GitHub committed 2022-03-10 01:48:27 -05:00
1 parent 03d924238c
commit 4047c5c068
2 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -121,7 +121,7 @@ func ListRepoNotifications(ctx *context.APIContext) {
return
}
err = nl.LoadAttributes()
if err != nil && !models.IsErrCommentNotExist(err) {
if err != nil {
ctx.InternalServerError(err)
return
}