From c1d7d30b8ec2950a6338f0b99ebe9bdc094fdb73 Mon Sep 17 00:00:00 2001 From: asciimoo Date: Tue, 11 Feb 2014 13:13:51 +0100 Subject: [mod] len() removed from conditions --- searx/engines/xpath.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/engines/xpath.py') 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: -- cgit v1.2.3