[hotfix] ignore if project type is None (#10284)
diff --git a/erpnext/patches/v8_5/remove_project_type_property_setter.py b/erpnext/patches/v8_5/remove_project_type_property_setter.py
index 11db783..03d128d 100644
--- a/erpnext/patches/v8_5/remove_project_type_property_setter.py
+++ b/erpnext/patches/v8_5/remove_project_type_property_setter.py
@@ -9,7 +9,7 @@
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