summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/mailstore/leap_mailstore.py
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2015-09-10 19:54:25 -0300
committerVictor Shyba <victor.shyba@gmail.com>2015-09-10 19:54:25 -0300
commitf748f702fe4ba716ef6bd8c90463ddf5861d07b0 (patch)
tree547b1d366aedfca80b91847e110e5077bd657cbb /service/pixelated/adapter/mailstore/leap_mailstore.py
parent660777bb8fee20bbbe4bb07cbc6679a11c29b7c3 (diff)
[feat] handle missing mailbox as all mails
-- Issue #444
Diffstat (limited to 'service/pixelated/adapter/mailstore/leap_mailstore.py')
-rw-r--r--service/pixelated/adapter/mailstore/leap_mailstore.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/adapter/mailstore/leap_mailstore.py b/service/pixelated/adapter/mailstore/leap_mailstore.py
index 5357167b..215cd74a 100644
--- a/service/pixelated/adapter/mailstore/leap_mailstore.py
+++ b/service/pixelated/adapter/mailstore/leap_mailstore.py
@@ -349,7 +349,7 @@ class LeapMailStore(MailStore):
@defer.inlineCallbacks
def _mailbox_name_from_uuid(self, uuid):
map = (yield self._mailbox_uuid_to_name_map())
- defer.returnValue(map[uuid])
+ defer.returnValue(map.get(uuid, ''))
@defer.inlineCallbacks
def _get_or_create_mailbox(self, mailbox_name):