Refacotring create pull request class

Line is too long. [121/80]<br>Avoid using `rescue` in its modifier form.