5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 01:11:42 +00:00

fix: ignorar instancias que ya no existen

This commit is contained in:
f 2024-02-28 12:32:59 -03:00
parent d5cf0fffe0
commit f1de4c8073
No known key found for this signature in database

View file

@ -21,6 +21,16 @@ class ActivityPub
instance.update(content: response.parsed_response.object)
break
rescue BRS::BaseError,
Errno::ECONNREFUSED,
HTTParty::Error,
JSON::JSONError,
Net::OpenTimeout,
OpenSSL::OpenSSLError,
SocketError,
Errno::ENETUNREACH => e
ExceptionNotifier.notify_exception(e, data: { instance: uri })
break
end
end