Change ValueError to TaskError

Auditors: benjy