mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
[fix] pylint: use "raise ... from ..."
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user