From 99fe0412b301254552cd2ce3fa3c22f85d160045 Mon Sep 17 00:00:00 2001 From: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com> Date: Tue, 2 Feb 2021 17:39:05 +0530 Subject: [PATCH] fix(patch): Pass if table is missing (#12302) --- frappe/desk/utils.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frappe/desk/utils.py b/frappe/desk/utils.py index c19e531739..01b47ac106 100644 --- a/frappe/desk/utils.py +++ b/frappe/desk/utils.py @@ -7,12 +7,13 @@ def validate_route_conflict(doctype, name): ''' Raises exception if name clashes with routes from other documents for /app routing ''' - if frappe.flags.ignore_route_conflict_validation: - return all_names = [] for _doctype in ['Page', 'Workspace', 'DocType']: - all_names.extend([slug(d) for d in frappe.get_all(_doctype, pluck='name') if (doctype != _doctype and d != name)]) + try: + all_names.extend([slug(d) for d in frappe.get_all(_doctype, pluck='name') if (doctype != _doctype and d != name)]) + except frappe.db.TableMissingError: + pass if slug(name) in all_names: frappe.msgprint(frappe._('Name already taken, please set a new name'))