[mod] engine brave: raise error on unsupported category

This commit is contained in:
Bnyro 2023-08-10 12:19:03 +02:00 committed by Markus Heiser
parent 4731290317
commit 0a99dc85b9
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ def response(resp):
if brave_category == 'videos': if brave_category == 'videos':
return _parse_videos(json_resp) return _parse_videos(json_resp)
return [] raise ValueError(f"Unsupported brave category: {brave_category}")
def _parse_search(resp): def _parse_search(resp):