diff options
author | Bnyro <bnyro@tutanota.com> | 2023-08-10 12:19:03 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2023-08-10 12:35:24 +0200 |
commit | 0a99dc85b9bf28c5144f02e7797e6e111bf51dda (patch) | |
tree | 9a6b5bcf2e8c13b9e3c05eb862350fd11cb5fb66 /searx/engines/brave.py | |
parent | 473129031710973e3c02e7178085b751b5e821ed (diff) | |
download | searxng-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.py | 2 |
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): |