Sfoglia il codice sorgente

Update file.py

version-14
Himanshu 5 anni fa
committed by GitHub
parent
commit
a94befbc21
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      frappe/core/doctype/file/file.py

+ 1
- 1
frappe/core/doctype/file/file.py Vedi File

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


Caricamento…
Annulla
Salva