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