Skip to content

Commit

Permalink
fix the exception handling #1729
Browse files Browse the repository at this point in the history
  • Loading branch information
stuzart committed Jan 31, 2024
1 parent fe23d3d commit dbeb85a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/seek/biomodels_search/search_biomodels_adaptor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ def perform_search(query)
json['models'].collect do |result|
begin
BiomodelsSearchResult.new result['id']
rescue NoMethodError=>e
rescue NoMethodError=>exception
Seek::Errors::ExceptionForwarder.send_notification(exception, data: { error: 'error reading response from BioModels', item_id: result['id'], query: query })
nil
end
end.compact.reject do |biomodels_result|
biomodels_result.title.blank?
Expand Down

0 comments on commit dbeb85a

Please sign in to comment.