catch exception for missing attachments