From 99d46844d51e056170a510e4bb591852a3f102be Mon Sep 17 00:00:00 2001 From: Himanshu Warekar Date: Tue, 25 Jun 2019 16:25:51 +0530 Subject: [PATCH] fix: minor patch fix --- erpnext/patches/v12_0/set_priority_for_support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/v12_0/set_priority_for_support.py b/erpnext/patches/v12_0/set_priority_for_support.py index e41b8b1bfc5..fde4da3e650 100644 --- a/erpnext/patches/v12_0/set_priority_for_support.py +++ b/erpnext/patches/v12_0/set_priority_for_support.py @@ -12,7 +12,7 @@ def execute(): def set_issue_priority(): # Adds priority from issue to Issue Priority DocType as Priority is a new DocType. for priority in frappe.get_meta("Issue").get_field("priority").options.split("\n"): - if not frappe.db.exists("Issue Priority", priority): + if priority and not frappe.db.exists("Issue Priority", priority): frappe.get_doc({ "doctype": "Issue Priority", "name": priority