Merge pull request #22 from rohitwaghchaure/master

[fix] NoneType object has no attribute startswith
This commit is contained in:
Saurabh
2017-05-02 10:52:45 +05:30
committed by GitHub

View File

@@ -20,5 +20,5 @@ class ServiceProvider(WebsiteGenerator):
title='All Service Providers in {0}'.format(self.country))]
if self.member:
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