Merge pull request #6373 from betagouv/main

2021-07-29-01
This commit is contained in:
krichtof 2021-07-29 12:01:13 +02:00 committed by GitHub
commit 053cf0cd29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,11 @@ class ProcedureArchiveService
Zip::OutputStream.open(tmp_file) do |zipfile|
files.each do |attachment, pj_filename|
zipfile.put_next_entry("procedure-#{@procedure.id}/#{pj_filename}")
zipfile.puts(attachment.download)
begin
zipfile.puts(attachment.download)
rescue
raise "Problem while trying to attach #{pj_filename}"
end
end
end