forked from Ponysearch/Ponysearch
[mod] engine brave: raise error on unsupported category
This commit is contained in:
parent
4731290317
commit
0a99dc85b9
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue