Skip to content

Commit

Permalink
Merge pull request #73 from nylas/SET-3876-add-support-for-missing-di…
Browse files Browse the repository at this point in the history
…stinguished-folders-in-exchangelib-to-not-block-sync
  • Loading branch information
dominicj-nylas authored Mar 23, 2022
2 parents 28ae5b9 + 0d7c2d2 commit 6494c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exchangelib/folders.py
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ def get_default_folder(self, folder_cls):
fld = folder_cls(account=self.account, name=folder_cls.DISTINGUISHED_FOLDER_ID, is_distinguished=True)
fld.test_access()
return self._folders_map.get(fld.id, fld) # Use cached instance if available
except ErrorFolderNotFound:
except (ErrorFolderNotFound, ErrorItemNotFound, ErrorNoPublicFolderReplicaAvailable):
# The Exchange server does not return a distinguished folder of this type
pass

Expand Down

0 comments on commit 6494c2d

Please sign in to comment.