diff options
Diffstat (limited to 'src/leap/mail/sync_hooks.py')
-rw-r--r-- | src/leap/mail/sync_hooks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/mail/sync_hooks.py b/src/leap/mail/sync_hooks.py index a8a69c9..bd8d88d 100644 --- a/src/leap/mail/sync_hooks.py +++ b/src/leap/mail/sync_hooks.py @@ -86,7 +86,7 @@ class MailProcessingPostSyncHook(object): # have seen -- but make sure *it's already created* before # inserting the index entry!. d = indexer.create_table(mbox_uuid) - d.addCallback(lambda _: indexer.insert_doc(mbox_uuid, index_docid)) + d.addBoth(lambda _: indexer.insert_doc(mbox_uuid, index_docid)) self._processing_deferreds.append(d) def _process_queued_docs(self): |