From 148090df12f9e76fca2b9fbe29333bc920f72736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Fri, 21 Jan 2022 17:50:37 +0100 Subject: [PATCH] Minor fixes to satisfy the linter --- searx/engines/google.py | 2 +- searx/engines/startpage.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/searx/engines/google.py b/searx/engines/google.py index 36adc3e4..96365daf 100644 --- a/searx/engines/google.py +++ b/searx/engines/google.py @@ -8,7 +8,7 @@ Definitions`_. https://developers.google.com/custom-search/docs/xml_results#WebSearch_Query_Parameter_Definitions """ -# pylint: disable=invalid-name, missing-function-docstring +# pylint: disable=invalid-name, missing-function-docstring, too-many-branches from urllib.parse import urlencode from lxml import html diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py index d850eebe..247b49e3 100644 --- a/searx/engines/startpage.py +++ b/searx/engines/startpage.py @@ -16,6 +16,7 @@ from lxml import html from babel import Locale from babel.localedata import locale_identifiers +from searx import logger from searx.network import get from searx.utils import extract_text, eval_xpath, match_language from searx.exceptions import ( @@ -23,6 +24,7 @@ from searx.exceptions import ( SearxEngineCaptchaException, ) +logger = logger.getChild('startpage') # about about = {