Skip to content

Commit

Permalink
Added traceback in case of tools exeption
Browse files Browse the repository at this point in the history
  • Loading branch information
Pingdred committed Sep 27, 2023
1 parent c26f020 commit 87b00eb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/cat/looking_glass/agent_manager.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from datetime import timedelta
import time
import traceback
from datetime import timedelta
from typing import List, Dict

from langchain.docstore.document import Document
Expand Down Expand Up @@ -166,8 +167,8 @@ def execute_agent(self):
return out

except Exception as e:
error_description = str(e)
log.error(error_description)
log.error(e)
traceback.print_exc()

#If an exeption occur in the execute_tool_agent or there is no allowed tools execute only the memory chain

Expand Down

0 comments on commit 87b00eb

Please sign in to comment.