FIX: handle unexpected errors when browsing web (#1314)

This commit is contained in:
Sam 2025-05-06 18:12:26 +10:00 committed by GitHub
parent e9fed4f5fa
commit c6a307b473
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,6 +44,9 @@ module DiscourseAi
end
end
{ url: url, error: "Failed to retrieve the web page" }
rescue StandardError
# keeping information opaque for now just in case
{ url: url, error: "Failed to retrieve the web page" }
end