aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/eventsource/manager_run.go4
-rw-r--r--routers/web/repo/issue_stopwatch.go4
2 files changed, 6 insertions, 2 deletions
diff --git a/modules/eventsource/manager_run.go b/modules/eventsource/manager_run.go
index 6055cf7232..06d48454fd 100644
--- a/modules/eventsource/manager_run.go
+++ b/modules/eventsource/manager_run.go
@@ -94,7 +94,9 @@ loop:
for _, userStopwatches := range usersStopwatches {
apiSWs, err := convert.ToStopWatches(userStopwatches.StopWatches)
if err != nil {
- log.Error("Unable to APIFormat stopwatches: %v", err)
+ if !issues_model.IsErrIssueNotExist(err) {
+ log.Error("Unable to APIFormat stopwatches: %v", err)
+ }
continue
}
dataBs, err := json.Marshal(apiSWs)
diff --git a/routers/web/repo/issue_stopwatch.go b/routers/web/repo/issue_stopwatch.go
index 68f89b258d..97d4441a27 100644
--- a/routers/web/repo/issue_stopwatch.go
+++ b/routers/web/repo/issue_stopwatch.go
@@ -99,7 +99,9 @@ func GetActiveStopwatch(ctx *context.Context) {
issue, err := issues_model.GetIssueByID(ctx, sw.IssueID)
if err != nil || issue == nil {
- ctx.ServerError("GetIssueByID", err)
+ if !issues_model.IsErrIssueNotExist(err) {
+ ctx.ServerError("GetIssueByID", err)
+ }
return
}
if err = issue.LoadRepo(ctx); err != nil {