summaryrefslogtreecommitdiff
path: root/mail/src/leap
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-02-20 00:00:24 -0400
committerKali Kaneko <kali@leap.se>2014-02-20 11:50:04 -0400
commitf91197807945274fc00a41a42d6a591d48b1d027 (patch)
tree6f9da5d871aa6ab7c2aca212f5ee37362fb61893 /mail/src/leap
parent5ac3c4ac6b9488554cc10507ed599eebbfe27902 (diff)
fix attribute error on debug line
Diffstat (limited to 'mail/src/leap')
-rw-r--r--mail/src/leap/mail/imap/soledadstore.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/src/leap/mail/imap/soledadstore.py b/mail/src/leap/mail/imap/soledadstore.py
index 919f834e..ed5259af 100644
--- a/mail/src/leap/mail/imap/soledadstore.py
+++ b/mail/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