Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[mod] engine google_play: raise error on unsupported category

Bnyro9f82c3961090
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):