chore: correct docstring

[skip ci]
This commit is contained in:
Ankush Menat
2021-11-29 13:35:26 +05:30
committed by Ankush Menat
parent 2768047c9b
commit d270b320f1

View File

@@ -106,10 +106,11 @@ class WebsiteItem(WebsiteGenerator):
make_website_item(template_item)
def validate_website_image(self):
"""Validate if the website image is a public file"""
if frappe.flags.in_import:
return
"""Validate if the website image is a public file"""
auto_set_website_image = False
if not self.website_image and self.image:
auto_set_website_image = True
@@ -532,4 +533,4 @@ def make_website_item(doc, save=True):
# Add to search cache
insert_item_to_index(website_item)
return [website_item.name, website_item.web_item_name]
return [website_item.name, website_item.web_item_name]