raising ValueError on catching blanket exception