mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-06-26 17:42:15 +00:00
FIX: handle unexpected errors when browsing web (#1314)
This commit is contained in:
parent
e9fed4f5fa
commit
c6a307b473
@ -44,6 +44,9 @@ module DiscourseAi
|
|||||||
end
|
end
|
||||||
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" }
|
{ url: url, error: "Failed to retrieve the web page" }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user