lib/libis/services/rosetta/deposit_handler.rb in libis-services-0.1.11 vs lib/libis/services/rosetta/deposit_handler.rb in libis-services-0.1.12
- old
+ new
@@ -174,10 +174,10 @@
protected
def request_activities(method, args = {})
data = call method, args
list = Rosetta::DepositActivityList.new(total_records: data[:total_records])
- records = data[:records][:record]
+ records = data[:records][:record] rescue nil
list.records = (records.is_a?(Array) ? records : [records]).map { |record| Rosetta::DepositActivity.new(record)}
list
end
end
\ No newline at end of file