diff --git a/searx/engines/wttr.py b/searx/engines/wttr.py index 3c7b0927d..60e91114f 100644 --- a/searx/engines/wttr.py +++ b/searx/engines/wttr.py @@ -82,12 +82,17 @@ def request(query, params): params["url"] = url.format(query=quote(query), lang=params["language"]) + params["raise_for_httperror"] = False + return params def response(resp): results = [] + if resp.status_code == 404: + return [] + result = loads(resp.text) current = result["current_condition"][0]