diff --git a/db/bolt/task.go b/db/bolt/task.go index 08cd064d..f82e2682 100644 --- a/db/bolt/task.go +++ b/db/bolt/task.go @@ -122,7 +122,12 @@ func (d *BoltDb) deleteTaskWithOutputs(projectID int, taskID int, tx *bbolt.Tx) return } - return tx.DeleteBucket(makeBucketId(db.TaskOutputProps, taskID)) + err = tx.DeleteBucket(makeBucketId(db.TaskOutputProps, taskID)) + if err == bbolt.ErrBucketNotFound { + err = nil + } + + return } func (d *BoltDb) DeleteTaskWithOutputs(projectID int, taskID int) error {