summaryrefslogtreecommitdiff
path: root/searx/search.py
diff options
context:
space:
mode:
authorDalf <alex@al-f.net>2019-08-02 20:04:37 +0200
committerDalf <alex@al-f.net>2019-08-02 20:04:37 +0200
commitba80a0ba380d0177634a471f38142f840e06b9b5 (patch)
treece1e1b941d61e7b7c5e8837d3e3350827d6f8b8c /searx/search.py
parent72029d27ded8d93ab891c616d6bffbe8d3a67dd2 (diff)
downloadsearxng-ba80a0ba380d0177634a471f38142f840e06b9b5.tar.gz
searxng-ba80a0ba380d0177634a471f38142f840e06b9b5.zip
[fix] fix paging for the oscar theme after PR #1640
Diffstat (limited to 'searx/search.py')
-rw-r--r--searx/search.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/searx/search.py b/searx/search.py
index a2c1c85f2..9c7142c74 100644
--- a/searx/search.py
+++ b/searx/search.py
@@ -279,10 +279,13 @@ def get_search_query_from_webapp(preferences, form):
query_timeout = raw_text_query.timeout_limit
if query_timeout is None and 'timeout_limit' in form:
raw_time_limit = form.get('timeout_limit')
- try:
- query_timeout = float(raw_time_limit)
- except ValueError:
- raise SearxParameterException('timeout_limit', raw_time_limit)
+ if raw_time_limit in ['None', '']:
+ raw_time_limit = None
+ else:
+ try:
+ query_timeout = float(raw_time_limit)
+ except ValueError:
+ raise SearxParameterException('timeout_limit', raw_time_limit)
# query_categories
query_categories = []