浏览代码

Update file.py

version-14
Himanshu 5 年前
committed by GitHub
父节点
当前提交
a94befbc21
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      frappe/core/doctype/file/file.py

+ 1
- 1
frappe/core/doctype/file/file.py 查看文件

@@ -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)


正在加载...
取消
保存