Harrison/errors (#1276)

Co-authored-by: Kevin Huo <5000881+kwhuo68@users.noreply.github.com>
This commit is contained in:
Harrison Chase 2023-02-24 07:13:47 -08:00 committed by GitHub
parent 8a0751dadd
commit bb53d9722d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 3 deletions

View File

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

View File

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