summaryrefslogtreecommitdiff
path: root/searx/webadapter.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-12-17 09:57:57 +0100
committerAlexandre Flament <alex@al-f.net>2020-12-20 09:46:53 +0100
commit3f8ebf70b193f4391a01d7412324a10e4faa56a2 (patch)
treed65eb74cbe46be6813afdf9907de5941cbbb9a4d /searx/webadapter.py
parenteb33ae6893ef9d5081b1ddd1119e7047642a40af (diff)
downloadsearxng-3f8ebf70b193f4391a01d7412324a10e4faa56a2.tar.gz
searxng-3f8ebf70b193f4391a01d7412324a10e4faa56a2.zip
[fix] pylint: use "raise ... from ..."
Diffstat (limited to 'searx/webadapter.py')
-rw-r--r--searx/webadapter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/webadapter.py b/searx/webadapter.py
index 0ad82c62c..ca2604c3e 100644
--- a/searx/webadapter.py
+++ b/searx/webadapter.py
@@ -105,8 +105,8 @@ def parse_timeout(form: Dict[str, str], raw_text_query: RawTextQuery) -> Optiona
return None
try:
return float(timeout_limit)
- except ValueError:
- raise SearxParameterException('timeout_limit', timeout_limit)
+ except ValueError as e:
+ raise SearxParameterException('timeout_limit', timeout_limit) from e
def parse_category_form(query_categories: List[str], name: str, value: str) -> None: