From 0a99dc85b9bf28c5144f02e7797e6e111bf51dda Mon Sep 17 00:00:00 2001 From: Bnyro Date: Thu, 10 Aug 2023 12:19:03 +0200 Subject: [PATCH] [mod] engine brave: raise error on unsupported category --- searx/engines/brave.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):