chore: catch anything thrown out of a fetch
This commit is contained in:
parent
e9a615de0d
commit
1e25e460fc
7 changed files with 11 additions and 9 deletions
|
@ -6,7 +6,7 @@ module.exports = async function () {
|
|||
const res = EleventyFetch(url, {
|
||||
duration: '1h',
|
||||
type: 'json',
|
||||
})
|
||||
}).catch()
|
||||
const artists = await res
|
||||
return artists.topartists.artist
|
||||
}
|
||||
|
|
Reference in a new issue