summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mail/src/leap/mail/adaptors/soledad.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/src/leap/mail/adaptors/soledad.py b/mail/src/leap/mail/adaptors/soledad.py
index 46c5a2c5..ca8f741d 100644
--- a/mail/src/leap/mail/adaptors/soledad.py
+++ b/mail/src/leap/mail/adaptors/soledad.py
@@ -508,7 +508,7 @@ class MessageWrapper(object):
log.msg("Empty raw field in cdoc %s" % doc_id)
cdoc.set_future_doc_id(doc_id)
- def create(self, store, notify_just_mdoc=False, pending_inserts_dict={}):
+ def create(self, store, notify_just_mdoc=False, pending_inserts_dict=None):
"""
Create all the parts for this message in the store.
@@ -539,6 +539,9 @@ class MessageWrapper(object):
depending on the value of the notify_just_mdoc flag
:rtype: defer.Deferred
"""
+ if pending_inserts_dict is None:
+ pending_inserts_dict = {}
+
leap_assert(self.cdocs,
"Need non empty cdocs to create the "
"MessageWrapper documents")