Catch errors that querying GitHub API might throw.