From 9f82c3961090047509330498a62338effdacd1a3 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Thu, 10 Aug 2023 12:20:25 +0200 Subject: [PATCH] [mod] engine google_play: raise error on unsupported category --- searx/engines/google_play.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):