diff options
author | Kali Kaneko <kali@leap.se> | 2014-01-27 16:11:53 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-01-28 19:38:46 -0400 |
commit | f5365ae0c2edb8b3e879f876f2f7e42b25f4616a (patch) | |
tree | 6f9787f65e89d720739b99d7feefc30138ea890f /src/leap/mail/utils.py | |
parent | a5508429b90e2e9b58c5d073610ee5a10274663f (diff) |
handle last_uid property in memory store
Diffstat (limited to 'src/leap/mail/utils.py')
-rw-r--r-- | src/leap/mail/utils.py | 5 |
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): |