mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-09 21:37:38 +00:00
[hotfix] ignore if project type is None (#10284)
This commit is contained in:
@@ -9,7 +9,7 @@ def execute():
|
||||
project_types = frappe.db.sql_list('select distinct project_type from tabProject')
|
||||
|
||||
for project_type in project_types:
|
||||
if not frappe.db.exists("Project Type", project_type):
|
||||
if project_type and not frappe.db.exists("Project Type", project_type):
|
||||
p_type = frappe.get_doc({
|
||||
"doctype": "Project Type",
|
||||
"project_type": project_type
|
||||
|
||||
Reference in New Issue
Block a user