diff --git a/app/models/account/export.rb b/app/models/account/export.rb index 289c0352f..0f3d50f0c 100644 --- a/app/models/account/export.rb +++ b/app/models/account/export.rb @@ -70,6 +70,8 @@ class Account::Export < ApplicationRecord zip.get_output_stream(attachment[:path]) do |f| attachment[:blob].download { |chunk| f.write(chunk) } end + rescue ActiveStorage::FileNotFoundError + # Skip attachments where the file is missing from storage end end end