added error handling for retrying pull requests