Should not error out on "My site not found" (#3469)

This code should not error out on `Unable to retrieve user's mysite URL`.

---

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

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

#### Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [x] 🐛 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.-->
- [x] 💪 Manual
- [x]  Unit test
- [x] 💚 E2E
This commit is contained in:
jules 2023-05-22 10:54:44 -07:00 committed by GitHub
parent dfbf8f341a
commit 11752d869c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,8 @@ func UserHasDrives(ctx context.Context, acct account.Account, userID string) (bo
} }
if !graph.IsErrExchangeMailFolderNotFound(err) || if !graph.IsErrExchangeMailFolderNotFound(err) ||
clues.HasLabel(err, graph.LabelStatus(http.StatusNotFound)) { clues.HasLabel(err, graph.LabelStatus(http.StatusNotFound)) ||
clues.HasLabel(err, graph.LabelsMysiteNotFound) {
return false, err return false, err
} }