mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 07:18:24 +01:00
hehe try catch
This commit is contained in:
parent
d0c8d803fe
commit
5aa00f88ea
1 changed files with 3 additions and 2 deletions
|
@ -135,6 +135,8 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
k = " ";
|
k = " ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
// continuation stuff - whoa cool
|
// continuation stuff - whoa cool
|
||||||
let continuation = req.query.continuation ? `&continuation=${req.query.continuation}` : "";
|
let continuation = req.query.continuation ? `&continuation=${req.query.continuation}` : "";
|
||||||
let continuationl = req.query.continuationl ? `&continuation=${req.query.continuationl}` : "";
|
let continuationl = req.query.continuationl ? `&continuation=${req.query.continuationl}` : "";
|
||||||
|
@ -150,7 +152,6 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
// community tab - protobuf Egljb21tdW5pdHk%3D
|
// community tab - protobuf Egljb21tdW5pdHk%3D
|
||||||
const c = await modules.fetch(`https://inv.zzls.xyz/api/v1/channels/community/${ID}/`).then((res) => res.text()) .then((txt) => getJson(txt));
|
const c = await modules.fetch(`https://inv.zzls.xyz/api/v1/channels/community/${ID}/`).then((res) => res.text()) .then((txt) => getJson(txt));
|
||||||
|
|
||||||
try {
|
|
||||||
const summary = await wiki.summary(k.Channel.Metadata.Name);
|
const summary = await wiki.summary(k.Channel.Metadata.Name);
|
||||||
|
|
||||||
var w = "";
|
var w = "";
|
||||||
|
|
Loading…
Reference in a new issue