Rescue syscall error instead

This commit is contained in:
Wedge 2018-09-04 02:13:47 +03:00
parent 585295b50e
commit 34e9e261b0
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ module AbfWorkerService
sha1 = build_list.packages.pluck(:sha1).find do |sha1| sha1 = build_list.packages.pluck(:sha1).find do |sha1|
begin begin
!FileStoreService::File.new(sha1: sha1).exist? !FileStoreService::File.new(sha1: sha1).exist?
rescue rescue SystemCallError => e
nil nil
end end
end end