summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-07-31 15:08:35 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-07-31 15:08:35 +0200
commitae52e363418f07d5e485bcd9ba39ed8f25ba24d2 (patch)
tree36672deeec68334868da0942ba3dedb04f12e97e
parent8d344ac056a6a987939ca65b4175e96ef7665b2c (diff)
downloadpykolab-ae52e363418f07d5e485bcd9ba39ed8f25ba24d2.tar.gz
Do not issue a fatal error should deleting a mailbox not succeed
-rw-r--r--pykolab/cli/cmd_delete_mailbox.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pykolab/cli/cmd_delete_mailbox.py b/pykolab/cli/cmd_delete_mailbox.py
index ce30c2b..ea64abc 100644
--- a/pykolab/cli/cmd_delete_mailbox.py
+++ b/pykolab/cli/cmd_delete_mailbox.py
@@ -57,5 +57,8 @@ def execute(*args, **kw):
sys.exit(1)
for delete_folder in delete_folders:
- imap.delete_mailfolder(delete_folder)
+ try:
+ imap.delete_mailfolder(delete_folder)
+ except Exception, errmsg:
+ log.error(_("Could not delete mailbox '%s'") % (delete_folder))