mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
[minor] catch SSL error on make_thumbnail, via support
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user