mirror of
https://github.com/searxng/searxng.git
synced 2025-07-15 01:09:21 +02:00
[fix] pylint: use "raise ... from ..."
This commit is contained in:
parent
eb33ae6893
commit
3f8ebf70b1
4 changed files with 12 additions and 12 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue