summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2016-08-24 13:12:27 -0400
committerKali Kaneko <kali@leap.se>2016-08-25 11:13:15 -0400
commit832239172918df3825b9125721aed3fecddd1987 (patch)
treeec3ad201d7ed64361ae81c1d916d25b57e205451
parent25a92ed09a17b7fe3958e1f7859289dc90d90a87 (diff)
[bug] fix import time mutable default param
-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")