Error changing favicon in hooks.py (website_context)

Hi there,

i’m trying to change favicon setting website_context in hooks,

website_context = {
    "favicon": "/assets/my-app/images/favicon.ico"
}

it rise an error:

Traceback (most recent call last):
15:16:27 web.1            |   File "/home/frappe/frappe-bench/apps/frappe/frappe/middlewares.py", line 15, in __call__
15:16:27 web.1            |     return super(StaticDataMiddleware, self).__call__(environ, start_response)
15:16:27 web.1            |   File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py", line 596, in __call__
15:16:27 web.1            |     real_filename, file_loader = loader(path[len(search_path):])
15:16:27 web.1            |   File "/home/frappe/frappe-bench/apps/frappe/frappe/middlewares.py", line 24, in loader
15:16:27 web.1            |     raise NotFound
15:16:27 web.1            | NotFound: 404 Not Found: The requested URL was not found on the server.  If you entered the URL manually please check your spelling and try again.
15:16:27 web.1            | 192.168.1.6 - - [30/May/2017 15:16:27] "GET /files/favicon.ico HTTP/1.1" 500 -
15:16:27 web.1            | Traceback (most recent call last):
15:16:27 web.1            |   File "/home/frappe/frappe-bench/apps/frappe/frappe/middlewares.py", line 15, in __call__
15:16:27 web.1            |     return super(StaticDataMiddleware, self).__call__(environ, start_response)
15:16:27 web.1            |   File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py", line 596, in __call__
15:16:27 web.1            |     real_filename, file_loader = loader(path[len(search_path):])
15:16:27 web.1            |   File "/home/frappe/frappe-bench/apps/frappe/frappe/middlewares.py", line 24, in loader

Seems it’s looking in /files/favicon.ico, can’t understand why …any hint?

fixed …there was a refuse in website settings, actually a wrong link.