Can no longer add favicon.ico

For months I have been using curl scripts for inserting initial data.

Now the script to supply the favicon.ico fails with:

Traceback (most recent call last):
  File "/home/erpdev/frappe-bench-DSWC/apps/frappe/frappe/", line 64, in application
    response = frappe.api.handle()
  File "/home/erpdev/frappe-bench-DSWC/apps/frappe/frappe/", line 58, in handle
    return frappe.handler.handle()
  File "/home/erpdev/frappe-bench-DSWC/apps/frappe/frappe/", line 30, in handle
    data = execute_cmd(cmd)
  File "/home/erpdev/frappe-bench-DSWC/apps/frappe/frappe/", line 70, in execute_cmd
    return, **frappe.form_dict)
  File "/home/erpdev/frappe-bench-DSWC/apps/frappe/frappe/", line 1113, in call
    return fn(*args, **newargs)
  File "/home/erpdev/frappe-bench-DSWC/apps/frappe/frappe/", line 369, in attach_file
  File "/home/erpdev/frappe-bench-DSWC/apps/frappe/frappe/model/", line 285, in save
    return self._save(*args, **kwargs)
  File "/home/erpdev/frappe-bench-DSWC/apps/frappe/frappe/model/", line 307, in _save
  File "/home/erpdev/frappe-bench-DSWC/apps/frappe/frappe/model/", line 231, in insert
  File "/home/erpdev/frappe-bench-DSWC/apps/frappe/frappe/model/", line 848, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "/home/erpdev/frappe-bench-DSWC/apps/frappe/frappe/model/", line 1133, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/erpdev/frappe-bench-DSWC/apps/frappe/frappe/model/", line 1116, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/erpdev/frappe-bench-DSWC/apps/frappe/frappe/model/", line 842, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/erpdev/frappe-bench-DSWC/apps/frappe/frappe/core/doctype/file/", line 56, in before_insert
    self.save_file(content=self.content, decode=self.decode)
  File "/home/erpdev/frappe-bench-DSWC/apps/frappe/frappe/core/doctype/file/", line 479, in save_file
    self.content = strip_exif_data(self.content, self.content_type)
  File "/home/erpdev/frappe-bench-DSWC/apps/frappe/frappe/utils/", line 39, in strip_exif_data, format=content_type.split('/')[1])
  File "/home/erpdev/frappe-bench-DSWC/env/lib/python3.8/site-packages/PIL/", line 2153, in save
    save_handler = SAVE[format.upper()]

Anyone got any hints how to deal with this?

erpnext 13.0.0-beta.9
frappe 13.0.0-beta.9

Update: Also occurs with

erpnext 13.0.0-beta.11
frappe 13.0.0-beta.10

This also occurs when trying to upload a favicon.ico file using the File Manager

favicon.ico is for website or dashboard ??

1 Like

So I tracked down this issue because it was too annoying to ignore:
(relevant for V13 only)

1 Like