@@ -45,7 +45,7 @@ class SearchAPI:
def _process_response(res: dict, type: str) -> str:
"""Process response from SearchAPI."""
if "error" in res:
- raise ValueError(f"Got error from SearchApi: {res['error']}")
+ return res["error"]
toret = ""
if type == "text":
def _process_response(res: dict) -> str:
if "transcripts" in res and "text" in res["transcripts"][0]: