[minor] catch SSL error on make_thumbnail, via support
This commit is contained in:
parent
26c54bb4fb
commit
c1531e7008
@ -105,7 +105,11 @@ class Item(WebsiteGenerator):
|
|||||||
frappe.local.message_log.pop()
|
frappe.local.message_log.pop()
|
||||||
|
|
||||||
except requests.exceptions.HTTPError:
|
except requests.exceptions.HTTPError:
|
||||||
frappe.msgprint(_("Warning: Invalid Attachment {0}").format(self.website_image))
|
frappe.msgprint(_("Warning: Invalid attachment {0}").format(self.website_image))
|
||||||
|
self.website_image = None
|
||||||
|
|
||||||
|
except requests.exceptions.SSLError:
|
||||||
|
frappe.msgprint(_("Warning: Invalid SSL certificate on attachment {0}").format(self.website_image))
|
||||||
self.website_image = None
|
self.website_image = None
|
||||||
|
|
||||||
# for CSV import
|
# for CSV import
|
||||||
|
Loading…
x
Reference in New Issue
Block a user