Spaces:
Sleeping
Sleeping
Rename agent.py to agent13.py
Browse files- 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:
|
|
|
|
| 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 |
|