diff --git a/app/services/abf_worker_service/base.rb b/app/services/abf_worker_service/base.rb index 0ee339132..cb1212020 100644 --- a/app/services/abf_worker_service/base.rb +++ b/app/services/abf_worker_service/base.rb @@ -68,7 +68,11 @@ module AbfWorkerService sha1 = nil TRIES.times do |i| sha1 = build_list.packages.pluck(:sha1).find do |sha1| - !FileStoreService::File.new(sha1: sha1).exist? rescue nil + begin + !FileStoreService::File.new(sha1: sha1).exist? + rescue + nil + end end break if !sha1.present? sleep 2**i