mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 22:14:28 +01:00
browse: make scrape_links() & scrape_text() "status_code >= 400" error message the same
This commit is contained in:
@@ -79,7 +79,7 @@ def scrape_links(url):
|
||||
|
||||
# Check if the response contains an HTTP error
|
||||
if response.status_code >= 400:
|
||||
return "error"
|
||||
return "Error: HTTP " + str(response.status_code) + " error"
|
||||
|
||||
soup = BeautifulSoup(response.text, "html.parser")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user