Skip to content

Commit

Permalink
fix(migrate): check if page exists before adding to space
Browse files Browse the repository at this point in the history
  • Loading branch information
BreadGenie committed Jun 12, 2023
1 parent 2392ad6 commit 3b894f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def execute():
sidebar_items = sidebars.items()
for sidebar, items in sidebar_items:
for item in items:
if item.type == "Wiki Page":
if item.type == "Wiki Page" and frappe.db.exists("Wiki Page", item.item):
wiki_sidebar_dict = {
"wiki_page": item.item,
"parent_label": item.group_name,
Expand Down

0 comments on commit 3b894f5

Please sign in to comment.