Removed unnecessary code from a catch.