Harrison/errors (#1276)

Co-authored-by: Kevin Huo <5000881+kwhuo68@users.noreply.github.com>
docker-utility-pexpect
Harrison Chase 1 year ago committed by GitHub
parent 8a0751dadd
commit bb53d9722d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -86,7 +86,6 @@ class GoogleSearchAPIWrapper(BaseModel):
service = build("customsearch", "v1", developerKey=google_api_key)
values["search_engine"] = service
# TODO: Add error handling if keys are missing
return values
def run(self, query: str) -> str:

@ -43,10 +43,8 @@ class WolframAlphaAPIWrapper(BaseModel):
"Please install it with `pip install wolframalpha`"
)
client = wolframalpha.Client(wolfram_alpha_appid)
values["wolfram_client"] = client
# TODO: Add error handling if keys are missing
return values
def run(self, query: str) -> str:

Loading…
Cancel
Save