summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2023-08-10 12:20:25 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2023-08-10 12:35:24 +0200
commit9f82c3961090047509330498a62338effdacd1a3 (patch)
tree4756ad9c76b4c420104b200717472c12c0763b8d
parent0a99dc85b9bf28c5144f02e7797e6e111bf51dda (diff)
downloadsearxng-9f82c3961090047509330498a62338effdacd1a3.tar.gz
searxng-9f82c3961090047509330498a62338effdacd1a3.zip
[mod] engine google_play: raise error on unsupported category
-rw-r--r--searx/engines/google_play.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/engines/google_play.py b/searx/engines/google_play.py
index 45a3fdb69..a9cfd1a76 100644
--- a/searx/engines/google_play.py
+++ b/searx/engines/google_play.py
@@ -48,7 +48,8 @@ def response(resp):
return response_movies(resp)
if play_categ == 'apps':
return response_apps(resp)
- return []
+
+ raise ValueError(f"Unsupported play category: {play_categ}")
def response_movies(resp):