mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 23:58:34 +00:00
Merge pull request #5 from slavakurilyak/fix-none-type-query-error
Fix NoneType object has no attribute 'query' error by updating app attribute
This commit is contained in:
@@ -41,4 +41,5 @@ class GithubSearchTool(RagTool):
|
||||
loader = GithubLoader(config={"token": self.gh_token})
|
||||
app = App()
|
||||
app.add(f"repo:{github_repo} type:{','.join(self.content_types)}", data_type="github", loader=loader)
|
||||
self.app = app
|
||||
return super()._run(query=search_query)
|
||||
Reference in New Issue
Block a user