mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 04:00:02 +00:00
[mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
committed by
Markus Heiser
parent
707d6270c8
commit
8205f170ff
@@ -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 = ""
|
||||
|
||||
Reference in New Issue
Block a user