Closed nathanielrindlaub closed 1 year ago
Looks like this is because Cuddelink sends emails that include status report attachments as HTML files (e.g. the temp filename would be something like /tmp/tmp_ytv4snc/S_00001.HTML
). In the previous code I had been filtering out all attachments that weren't .jpgs so I'll add that back in, but perhaps @postfalk we can add a test (or tests) to make sure the code can handle bad emails? Off the top of my head, we should be able to gracefully handle:
Thank you. Yes, it would be great to have an example. Maybe we should also test whether the attachment is an image. E.g. by just opening it with PIL. However, there will be some whack-a-mole as we introduce more payload formats.
Hey Falk,
I can send you the email that triggers this if it's helpful, but I'm also getting the following error when I try to test cuddelink emails in the dev environment: