Browse Source

[mod] engine brave: raise error on unsupported category

Bnyro 1 year ago
parent
commit
0a99dc85b9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/engines/brave.py

+ 1 - 1
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):