Skip to content

Commit 1c80a6b

Browse files
committed
wrap deletePage in try/catch
Signed-off-by: Dmitriy Nevzorov <[email protected]>
1 parent 18c3824 commit 1c80a6b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/plugin/onCreatePage.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ export const onCreatePage = async (
5656
};
5757

5858
const newPage = await generatePage(defaultLanguage);
59-
deletePage(page);
59+
try {
60+
deletePage(page);
61+
} catch {}
6062
createPage(newPage);
6163

6264
await BP.map(languages, async (lng) => {

0 commit comments

Comments
 (0)