Update file.py
This commit is contained in:
parent
27b6bcd757
commit
a94befbc21
1 changed files with 1 additions and 1 deletions
|
|
@ -683,7 +683,7 @@ def get_web_image(file_url):
|
|||
frappe.msgprint(_("Unable to read file format for {0}").format(file_url))
|
||||
raise
|
||||
|
||||
image = Image.open(StringIO(str(r.content)))
|
||||
image = Image.open(StringIO(frappe.safe_decode(r.content)))
|
||||
|
||||
try:
|
||||
filename, extn = file_url.rsplit("/", 1)[1].rsplit(".", 1)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue