Use inline rescue

Minor refactor to use an inline rescue where no code is executed upon rescue.