mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Return data sources to use if exception in data source chat actor
Previously no value was returned if an exception got triggered when collecting information sources to search.
This commit is contained in:
parent
a932564169
commit
731ea3779e
1 changed files with 2 additions and 2 deletions
|
@ -353,13 +353,13 @@ async def aget_relevant_information_sources(
|
|||
final_response = [ConversationCommand.Default]
|
||||
else:
|
||||
final_response = [ConversationCommand.General]
|
||||
return final_response
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
logger.error(f"Invalid response for determining relevant tools: {response}")
|
||||
if len(agent_tools) == 0:
|
||||
final_response = [ConversationCommand.Default]
|
||||
else:
|
||||
final_response = agent_tools
|
||||
return final_response
|
||||
|
||||
|
||||
async def aget_relevant_output_modes(
|
||||
|
|
Loading…
Reference in a new issue