Skip to content

Commit

Permalink
Merge pull request #183 from torin-asakura/fix/json-parsing
Browse files Browse the repository at this point in the history
feat(globals): error exception
  • Loading branch information
Amiditin authored Jan 10, 2025
2 parents c19f38e + 73dfd9f commit 7b40394
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ export const formatPagesDataHelper = async (
for await (const pageResponse of pageResponses) {
const responseText = await pageResponse.text()
if (responseText) {
const pageData = JSON.parse(responseText)
responsesData.push(pageData)
try {
const pageData = JSON.parse(responseText)
responsesData.push(pageData)
} catch (error) {
console.error('Error on globals_aqsi-data-getter, parse json')
}
}
}

Expand Down

0 comments on commit 7b40394

Please sign in to comment.