mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 01:51:41 +00:00
fix: ignorar instancias que ya no existen
This commit is contained in:
parent
d5cf0fffe0
commit
f1de4c8073
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue