summaryrefslogtreecommitdiff
path: root/src/leap/mail/utils.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-01-27 16:11:53 -0400
committerKali Kaneko <kali@leap.se>2014-01-28 19:38:46 -0400
commitf5365ae0c2edb8b3e879f876f2f7e42b25f4616a (patch)
tree6f9787f65e89d720739b99d7feefc30138ea890f /src/leap/mail/utils.py
parenta5508429b90e2e9b58c5d073610ee5a10274663f (diff)
handle last_uid property in memory store
Diffstat (limited to 'src/leap/mail/utils.py')
-rw-r--r--src/leap/mail/utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/leap/mail/utils.py b/src/leap/mail/utils.py
index bae2898..1f43947 100644
--- a/src/leap/mail/utils.py
+++ b/src/leap/mail/utils.py
@@ -42,7 +42,10 @@ def empty(thing):
"""
if thing is None:
return True
- return len(thing) == 0
+ try:
+ return len(thing) == 0
+ except ReferenceError:
+ return True
def maybe_call(thing):