summaryrefslogtreecommitdiff
path: root/searx/engines/dictzone.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/dictzone.py')
-rw-r--r--searx/engines/dictzone.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/dictzone.py b/searx/engines/dictzone.py
index 126e75374..a6e1ae289 100644
--- a/searx/engines/dictzone.py
+++ b/searx/engines/dictzone.py
@@ -26,7 +26,7 @@ results_xpath = './/table[@id="r"]/tr'
https_support = True
-def request(query, params):
+def request(query, params): # pylint: disable=unused-argument
params['url'] = url.format(from_lang=params['from_lang'][2], to_lang=params['to_lang'][2], query=params['query'])
return params
@@ -40,7 +40,7 @@ def response(resp):
for k, result in enumerate(eval_xpath(dom, results_xpath)[1:]):
try:
from_result, to_results_raw = eval_xpath(result, './td')
- except:
+ except: # pylint: disable=bare-except
continue
to_results = []