summaryrefslogtreecommitdiff
path: root/searx/engines/brave.py
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2023-08-10 12:19:03 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2023-08-10 12:35:24 +0200
commit0a99dc85b9bf28c5144f02e7797e6e111bf51dda (patch)
tree9a6b5bcf2e8c13b9e3c05eb862350fd11cb5fb66 /searx/engines/brave.py
parent473129031710973e3c02e7178085b751b5e821ed (diff)
downloadsearxng-0a99dc85b9bf28c5144f02e7797e6e111bf51dda.tar.gz
searxng-0a99dc85b9bf28c5144f02e7797e6e111bf51dda.zip
[mod] engine brave: raise error on unsupported category
Diffstat (limited to 'searx/engines/brave.py')
-rw-r--r--searx/engines/brave.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/brave.py b/searx/engines/brave.py
index c27d113f6..f45599212 100644
--- a/searx/engines/brave.py
+++ b/searx/engines/brave.py
@@ -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):