diff --git a/erpnext/patches/v7_0/update_home_page.py b/erpnext/patches/v7_0/update_home_page.py index 7bc7a2e202..ed88e203e6 100644 --- a/erpnext/patches/v7_0/update_home_page.py +++ b/erpnext/patches/v7_0/update_home_page.py @@ -13,7 +13,7 @@ def execute(): header = frappe.db.get_value('Web Page', website_settings.home_page, 'header') if header and header.startswith("
"): homepage = frappe.get_doc('Homepage', 'Homepage') - homepage.company = erpnext.get_default_company() + homepage.company = erpnext.get_default_company() or frappe.get_all("Company")[0].name if '

' in header: homepage.tag_line = header.split('

')[1].split('

')[0] or 'Default Website' else: