From 11752d869ccbea119dd3ace4a42d1f8ebea77903 Mon Sep 17 00:00:00 2001 From: jules <130390278+juleslasarte@users.noreply.github.com> Date: Mon, 22 May 2023 10:54:44 -0700 Subject: [PATCH] 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? - [ ] :white_check_mark: Yes, it's included - [ ] :clock1: Yes, but in a later PR - [x] :no_entry: No #### Type of change - [ ] :sunflower: Feature - [x] :bug: Bugfix - [ ] :world_map: Documentation - [ ] :robot: Supportability/Tests - [ ] :computer: CI/Deployment - [ ] :broom: Tech Debt/Cleanup #### Issue(s) * # #### Test Plan - [x] :muscle: Manual - [x] :zap: Unit test - [x] :green_heart: E2E --- src/pkg/services/m365/m365.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pkg/services/m365/m365.go b/src/pkg/services/m365/m365.go index 7ad8271e8..9ba5337e4 100644 --- a/src/pkg/services/m365/m365.go +++ b/src/pkg/services/m365/m365.go @@ -121,7 +121,8 @@ func UserHasDrives(ctx context.Context, acct account.Account, userID string) (bo } 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 }