added error handling for retrzing pull requests