From 832239172918df3825b9125721aed3fecddd1987 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Wed, 24 Aug 2016 13:12:27 -0400 Subject: [bug] fix import time mutable default param --- mail/src/leap/mail/adaptors/soledad.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mail') 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") -- cgit v1.2.3