summaryrefslogtreecommitdiffstats
path: root/pykolab/cli
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/cli')
-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))