SergeyO7 commited on
Commit
fc0917b
·
verified ·
1 Parent(s): 5d43a98

Rename agent.py to agent13.py

Browse files
Files changed (1) hide show
  1. agent.py → agent13.py +2 -1
agent.py → agent13.py RENAMED
@@ -50,7 +50,8 @@ class VisitWebpageTool(Tool):
50
  except requests.exceptions.Timeout:
51
  return "The request timed out. Please try again later or check the URL."
52
  except requests.exceptions.RequestException as e:
53
- return f"Error fetching the webpage: {str(e)}"
 
54
  except Exception as e:
55
  return f"An unexpected error occurred: {str(e)}"
56
 
 
50
  except requests.exceptions.Timeout:
51
  return "The request timed out. Please try again later or check the URL."
52
  except requests.exceptions.RequestException as e:
53
+ return f"Error fetching the webpage:
54
+ {str(e)}"
55
  except Exception as e:
56
  return f"An unexpected error occurred: {str(e)}"
57