summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2022-02-08 08:34:50 +0100
committerAleksander Machniak <machniak@kolabsys.com>2022-02-08 08:34:50 +0100
commit4698e9a87066340514bd5192a640640dab9d44c4 (patch)
tree1fc34934090ae4e9b50f47f77ef65f5f7479d945 /pykolab
parent3c512ef60f006cde7b357b8d3f7cbae7bb1f914d (diff)
downloadpykolab-4698e9a87066340514bd5192a640640dab9d44c4.tar.gz
Fix "RuntimeError: dictionary changed size during iteration" regression
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/imap/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/imap/__init__.py b/pykolab/imap/__init__.py
index 58ef755..8c67b86 100644
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -244,7 +244,7 @@ class IMAP(object):
del self.imap
# Empty out self._imap as well
- for key in self._imap:
+ for key in list(self._imap):
self._imap[key].disconnect()
del self._imap[key]