diff options
author | Kali Kaneko <kali@leap.se> | 2014-02-20 00:00:24 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-02-20 11:50:04 -0400 |
commit | 95e00da239bd119ae161f249a74af229cb6c7759 (patch) | |
tree | 5089384aa0a301c81d1bf81e467afbd1c267595f /src/leap | |
parent | d6ee618534596e76733d3c6b6cf0a75bdb4aa905 (diff) |
fix attribute error on debug line
Diffstat (limited to 'src/leap')
-rw-r--r-- | src/leap/mail/imap/soledadstore.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/leap/mail/imap/soledadstore.py b/src/leap/mail/imap/soledadstore.py index 919f834..ed5259a 100644 --- a/src/leap/mail/imap/soledadstore.py +++ b/src/leap/mail/imap/soledadstore.py @@ -308,8 +308,10 @@ class SoledadStore(ContentDedup): try: self._try_call(call, item) except Exception as exc: - logger.debug("ITEM WAS: %s" % str(item)) - logger.debug("ITEM CONTENT WAS: %s" % str(item.content)) + logger.debug("ITEM WAS: %s" % repr(item)) + if hasattr(item, 'content'): + logger.debug("ITEM CONTENT WAS: %s" % + repr(item.content)) logger.exception(exc) failed = True continue |