summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-07-06 11:20:29 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-07-06 11:21:33 +0200
commit4b7519d50708259b3cfd25e33c56f88130a1733e (patch)
tree03951d602906546ea101e1f29fc441054742ce06 /pykolab
parent132ea08148dfb903af3bffa1a2f74c7145a6e504 (diff)
downloadpykolab-4b7519d50708259b3cfd25e33c56f88130a1733e.tar.gz
Do not fail pykolab.auth on a pykolab.imap error (#5453)
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/imap/__init__.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/pykolab/imap/__init__.py b/pykolab/imap/__init__.py
index 7ad25e8..fe37dfc 100644
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -741,10 +741,13 @@ class IMAP(object):
)
if additional_folders[additional_folder].has_key("quota"):
- self.imap.sq(
- folder_name,
- additional_folders[additional_folder]['quota']
- )
+ try:
+ self.imap.sq(
+ folder_name,
+ additional_folders[additional_folder]['quota']
+ )
+ except Exception, errmsg:
+ log.error(_("Could not set quota on %s") % (additional_folder))
if additional_folders[additional_folder].has_key("partition"):
partition = additional_folders[additional_folder]["partition"]