SergeyO7 commited on
Commit
d9428ba
·
verified ·
1 Parent(s): 30e81de

Rename agent.py to agent20.py

Browse files
Files changed (1) hide show
  1. agent.py → agent20.py +2 -1
agent.py → agent20.py RENAMED
@@ -156,7 +156,8 @@ class ExcelReaderTool(Tool):
156
 
157
  def forward(self, excel_path: str, sheet_name: str = None) -> pd.DataFrame:
158
  try:
159
- if not os.path.exists(excel_path):
 
160
  return f"Error: Excel file not found at {excel_path}"
161
  if sheet_name:
162
  df = pd.read_excel(excel_path, sheet_name=sheet_name)
 
156
 
157
  def forward(self, excel_path: str, sheet_name: str = None) -> pd.DataFrame:
158
  try:
159
+ if not os.
160
+ path.exists(excel_path):
161
  return f"Error: Excel file not found at {excel_path}"
162
  if sheet_name:
163
  df = pd.read_excel(excel_path, sheet_name=sheet_name)