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…
Reference in New Issue