From 659c00f2ca4c27cc1cd213ea8b9ef62decc8a20e Mon Sep 17 00:00:00 2001 From: Solirs Date: Wed, 22 Mar 2023 22:27:25 +0100 Subject: [PATCH] Truly pass test --- searx/webapp.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/searx/webapp.py b/searx/webapp.py index 2a1ba6c48..81b0a6d5c 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -317,9 +317,9 @@ def get_favicon_or_logo(imgtype: str): if "://" in path: resp_ok = False resp = None - # TODO: Make a a function for this used by both this function and the image proxy + # TODO: Make a a function for this used by both this function and the image proxy # pylint: disable=fixme # ASAP to avoid repeated code like this - # pylint: disable=fixme + try: # Pull image from it request_headers = { @@ -1377,12 +1377,12 @@ def opensearch(): @app.route('/favicon.ico') def favicon(): - return get_favicon_or_logo("favicon", request) + return get_favicon_or_logo("favicon") @app.route('/logo') def logo(): - return get_favicon_or_logo("logo", request) + return get_favicon_or_logo("logo") @app.route('/clear_cookies')