1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 04:01:40 +01:00

[mod] engine brave: raise error on unsupported category

This commit is contained in:
Bnyro 2023-08-10 12:19:03 +02:00 committed by Markus Heiser
parent 4731290317
commit 0a99dc85b9

View File

@ -227,7 +227,7 @@ def response(resp):
if brave_category == 'videos':
return _parse_videos(json_resp)
return []
raise ValueError(f"Unsupported brave category: {brave_category}")
def _parse_search(resp):