File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1344,6 +1344,7 @@ def search_metaso(
13441344 except Exception as e :
13451345 return {"error" : f"Metaso search failed: { e } " }
13461346
1347+ @dependencies_required ("google-search-results" )
13471348 @api_keys_required ([(None , 'SERPAPI_KEY' )])
13481349 def search_serpapi (
13491350 self ,
@@ -1414,7 +1415,7 @@ def search_serpapi(
14141415 "filter" : filter ,
14151416 }
14161417
1417- if custom_params :
1418+ if custom_params is not None :
14181419 params .update (custom_params )
14191420 try :
14201421 search = SerpApiClient (params )
@@ -1439,10 +1440,6 @@ def search_serpapi(
14391440
14401441 return {"results" : formatted_results }
14411442
1442- except ImportError :
1443- return {
1444- "error" : "serpapi library not installed. Install with: pip install google-search-results"
1445- }
14461443 except Exception as e :
14471444 return {"error" : f"SerpApi search failed: { e !s} " }
14481445
You can’t perform that action at this time.
0 commit comments