From 8205f170ff983e5240d32dc17d7fdb526ebe5fe7 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Mon, 11 Mar 2024 07:45:08 +0100 Subject: [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION Signed-off-by: Markus Heiser --- searx/engines/wolframalpha_noapi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'searx/engines/wolframalpha_noapi.py') diff --git a/searx/engines/wolframalpha_noapi.py b/searx/engines/wolframalpha_noapi.py index bad25602a..a9d177c32 100644 --- a/searx/engines/wolframalpha_noapi.py +++ b/searx/engines/wolframalpha_noapi.py @@ -54,12 +54,12 @@ def obtain_token(): token_response = http_get('https://www.wolframalpha.com/input/api/v1/code?ts=9999999999999999999', timeout=2.0) token['value'] = loads(token_response.text)['code'] token['last_updated'] = update_time - except: + except: # pylint: disable=bare-except pass return token -def init(engine_settings=None): +def init(engine_settings=None): # pylint: disable=unused-argument obtain_token() @@ -83,7 +83,7 @@ def response(resp): if not resp_json['queryresult']['success']: return [] - # TODO handle resp_json['queryresult']['assumptions'] + # handle resp_json['queryresult']['assumptions']? result_chunks = [] infobox_title = "" result_content = "" -- cgit v1.2.3-54-g00ecf