From ac905d7e3ee59412aa31b575f8fb088e5c58dd31 Mon Sep 17 00:00:00 2001 From: Ashley Date: Sat, 5 Aug 2023 20:42:05 +0000 Subject: [PATCH] add try catch :p --- src/libpoketube/init/pages-video.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libpoketube/init/pages-video.js b/src/libpoketube/init/pages-video.js index 2e3c76c3..be99fe7f 100644 --- a/src/libpoketube/init/pages-video.js +++ b/src/libpoketube/init/pages-video.js @@ -177,6 +177,7 @@ core.video(v).then((data) => { if (uaos === "Windows XP" || uaos === "Windows Vista") res.redirect("/lite?v=" + req.query.v); + try { renderTemplate(res, req, "poketube.ejs", { color: data.color, color2: data.color2, @@ -215,6 +216,9 @@ core.video(v).then((data) => { inv_vid, lyrics: "", }); + } catch { + return; + } } catch (error) { console.error(error); return res.redirect("/?fromerror=41_generic_error");