From df7b115378575d33677adefc86daf1ee26729005 Mon Sep 17 00:00:00 2001 From: Suhail <63963181+BreadGenie@users.noreply.github.com> Date: Mon, 22 Jul 2024 18:44:19 +0530 Subject: [PATCH] fix: add guard for wiki feedback patch (#259) --- .../doctype/wiki_feedback/patches/delete_wiki_feedback_item.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wiki/wiki/doctype/wiki_feedback/patches/delete_wiki_feedback_item.py b/wiki/wiki/doctype/wiki_feedback/patches/delete_wiki_feedback_item.py index 6ac1fe96..fbf1f533 100644 --- a/wiki/wiki/doctype/wiki_feedback/patches/delete_wiki_feedback_item.py +++ b/wiki/wiki/doctype/wiki_feedback/patches/delete_wiki_feedback_item.py @@ -2,6 +2,9 @@ def execute(): + if not frappe.db.table_exists("Wiki Feedback Item"): + return + for d in frappe.db.sql("select * from `tabWiki Feedback Item`", as_dict=True): if not d.parent: continue