fix: minor patch fix

This commit is contained in:
Himanshu Warekar 2019-06-25 16:25:51 +05:30
parent 4538658d02
commit 99d46844d5

View File

@ -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