diff --git a/lib/scrape.js b/lib/scrape.js index c35cac9..cbae581 100644 --- a/lib/scrape.js +++ b/lib/scrape.js @@ -132,7 +132,12 @@ async function fetchLeaders(id) { let repositoryInfo = {} async function fetchRepositoryInfo(org) { if (repositoryInfo[org]) return repositoryInfo[org] - const { data, errors } = await client.query(GITHUB_REPO_INFO_QUERY, { org }) + let data, errors + try { + ;({ data, errors } = await client.query(GITHUB_REPO_INFO_QUERY, { org })) + } catch (error) { + console.warn(`GitHub query for org ${org} fails, error: ${error}`) + } if (data && data.organization) { const info = data.organization.repositories.nodes.map(node => ({