mirror of
https://github.com/erpnext/foundation.git
synced 2026-10-16 18:00:47 +02:00
[fix] NoneType object has no attribute startswith, if website has not defined in the service provider's profile
This commit is contained in:
@@ -20,5 +20,5 @@ class ServiceProvider(WebsiteGenerator):
|
|||||||
title='All Service Providers in {0}'.format(self.country))]
|
title='All Service Providers in {0}'.format(self.country))]
|
||||||
if self.member:
|
if self.member:
|
||||||
context.membership_type = frappe.get_value('Member', self.member, 'membership_type')
|
context.membership_type = frappe.get_value('Member', self.member, 'membership_type')
|
||||||
if not context.website.startswith('http'):
|
if context.website and not context.website.startswith('http'):
|
||||||
context.website = 'http://' + context.website
|
context.website = 'http://' + context.website
|
||||||
Reference in New Issue
Block a user