Had wrong expection type on a catch