Removed useless `begin` and `end` for exceptions inside the method

According this style guide https://github.com/bbatsov/ruby-style-guide#exceptions.
Section __Use implicit begin blocks where possible__.