From e55aefa97bc41a6617cd6201f82f9f788a1b2416 Mon Sep 17 00:00:00 2001 From: Erik Cederstrand Date: Thu, 6 Jun 2024 11:33:00 +0200 Subject: [PATCH] fix: roots do not have a setter --- exchangelib/folders/roots.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exchangelib/folders/roots.py b/exchangelib/folders/roots.py index b212da57..ee4eb15e 100644 --- a/exchangelib/folders/roots.py +++ b/exchangelib/folders/roots.py @@ -341,7 +341,8 @@ def _folders_map(self): if fix_parents: with self._subfolders_lock: for f in res.values(): - f.parent = None if f.id == self.id else self + if f.id != self.id: + f.parent = self return res def get_children(self, folder):