Skip to content

Commit

Permalink
Merge pull request #367 from NDLANO/catch-non-existant-slideshow-movies
Browse files Browse the repository at this point in the history
Catch non-existant slideshow movies
  • Loading branch information
Jonas-C authored Oct 16, 2023
2 parents 87b4822 + 28f5ade commit 4450218
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/frontpageApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ export async function fetchMovieMeta(
articleUrn: string,
context: Context,
): Promise<IMovieMeta | null> {
const article = await fetchSimpleArticle(articleUrn, context);
const article = await fetchSimpleArticle(articleUrn, context).catch(
() => null,
);

if (article) {
return {
Expand Down

0 comments on commit 4450218

Please sign in to comment.