Add note about skipping attachment fetch errors (#3626)

https://github.com/alcionai/corso/pull/3607#discussion_r1229799665

---

#### Does this PR need a docs update or release note?

- [ ]  Yes, it's included
- [ ] 🕐 Yes, but in a later PR
- [ ]  No

#### Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Supportability/Tests
- [ ] 💻 CI/Deployment
- [ ] 🧹 Tech Debt/Cleanup

#### Issue(s)

<!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. -->
* #<issue>

#### Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [ ]  Unit test
- [ ] 💚 E2E
This commit is contained in:
Abin Simon 2023-06-15 22:40:29 +05:30 committed by GitHub
parent 49903a11ae
commit cfbed454ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -406,6 +406,9 @@ func (c Mail) GetItem(
ByAttachmentId(ptr.Val(a.GetId())).
Get(ctx, attachConfig)
if err != nil {
// CannotOpenFileAttachment errors are not transient and
// happens possibly from the original item somehow getting
// deleted from M365 and so we can skip these
if graph.IsErrCannotOpenFileAttachment(err) {
logger.CtxErr(ctx, err).
With(