Refacotring create pull request class

Avoid rescuing the `Exception` class.