Skip to content

Commit d0c6a5d

Browse files
committed
(#830) Ignore unreachable context URLs when indexing
1 parent 672afc2 commit d0c6a5d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/services/index_envelope_resource.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,11 @@ def fetch_context_entry(key)
181181
[
182182
processed_resource['@context'],
183183
envelope.processed_resource['@context']
184-
].compact.each { JsonContext.update(_1) }
184+
].compact.each do |url|
185+
JsonContext.update(url)
186+
rescue RestClient::Exception => e
187+
Airbrake.notify(e, url:)
188+
end
185189
end
186190
end
187191

0 commit comments

Comments
 (0)