diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/scrapers/marz-shinjuku.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scrapers/marz-shinjuku.ts b/app/scrapers/marz-shinjuku.ts index 06c0bcc..b03f23c 100644 --- a/app/scrapers/marz-shinjuku.ts +++ b/app/scrapers/marz-shinjuku.ts @@ -26,7 +26,8 @@ export const venue: VenueMeta = { async function scrapeMonth(year: number, month: number): Promise<EventInput[]> { const url = `http://www.marz.jp/schedule/${year}/${String(month).padStart(2, "0")}/`; const res = await fetch(url); - if (!res.ok) throw new Error(`HTTP ${res.status} for ${url}`); + // 404/500 = schedule not yet published for that month + if (!res.ok) return []; const $ = cheerio.load(await res.text()); const events: EventInput[] = []; |
