summaryrefslogtreecommitdiff
path: root/searx/engines/xpath.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/xpath.py')
-rw-r--r--searx/engines/xpath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py
index 04b021e33..9af24de3b 100644
--- a/searx/engines/xpath.py
+++ b/searx/engines/xpath.py
@@ -23,7 +23,7 @@ if xpath_results is a string element, then it's already done
def extract_text(xpath_results):
if type(xpath_results) == list:
# it's list of result : concat everything using recursive call
- if not len(xpath_results):
+ if not xpath_results:
raise Exception('Empty url resultset')
result = ''
for e in xpath_results: