api/bluesky: catch fetch errors (oops)
This commit is contained in:
parent
6c9601690b
commit
b727a56d67
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ const extractVideo = async ({ getPost, filename }) => {
|
|||
|
||||
const masterHLS = await fetch(urlMasterHLS)
|
||||
.then(r => r.text())
|
||||
.catch();
|
||||
.catch(() => {});
|
||||
if (!masterHLS) return { error: "fetch.fail" };
|
||||
|
||||
const video = HLS.parse(masterHLS)
|
||||
|
@ -37,7 +37,7 @@ export default async function ({ user, post }) {
|
|||
}
|
||||
})
|
||||
.then(r => r.json())
|
||||
.catch();
|
||||
.catch(() => {});
|
||||
|
||||
if (!getPost || getPost?.error) return { error: "fetch.empty" };
|
||||
|
||||
|
|
Loading…
Reference in a new issue