summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/services/mail/imap.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-11-01 00:04:51 -0200
committerKali Kaneko <kali@leap.se>2013-11-01 00:04:51 -0200
commitd21b490b020d5e942f1e9a27177fa9c977284f20 (patch)
treef9250bcb189be6e8aad0df86940f1323264caec3 /src/leap/bitmask/services/mail/imap.py
parent71f53e07adfa77e1f9f2832334e90b1ffadda73a (diff)
parentbd420f8ecb15c0973496e2c0d2a3255b28b9616d (diff)
Merge branch 'develop' of ssh://leap.se/bitmask_client into develop
Diffstat (limited to 'src/leap/bitmask/services/mail/imap.py')
-rw-r--r--src/leap/bitmask/services/mail/imap.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/leap/bitmask/services/mail/imap.py b/src/leap/bitmask/services/mail/imap.py
index 4828180e..2667f156 100644
--- a/src/leap/bitmask/services/mail/imap.py
+++ b/src/leap/bitmask/services/mail/imap.py
@@ -41,9 +41,10 @@ def get_mail_check_period():
try:
period = int(period_str)
except (ValueError, TypeError):
- logger.warning("BAD value found for %s: %s" % (
- INCOMING_CHECK_PERIOD_ENV,
- period_str))
+ if period is not None:
+ logger.warning("BAD value found for %s: %s" % (
+ INCOMING_CHECK_PERIOD_ENV,
+ period_str))
except Exception as exc:
logger.warning("Unhandled error while getting %s: %r" % (
INCOMING_CHECK_PERIOD_ENV,