[mod] engine brave: raise error on unsupported category
This commit is contained in:
		
							parent
							
								
									4731290317
								
							
						
					
					
						commit
						0a99dc85b9
					
				| @ -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): | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user