Catch folderfilter errors in repository.IMAP.getfolders()

Rather than throwing ValueError, we now properly throw OfflineImapError
when selecting a folder in folderincludes. So we also need to catch
OfflineImapErrors here. If they are of severity FOLDER, just ignore the
invalid folder and continue. If the error is more severe, bubble it up.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Sebastian Spaeth
2011-08-12 08:56:56 +02:00
committed by Nicolas Sebrecht
parent f6b9c68333
commit fa18968642
2 changed files with 10 additions and 2 deletions

View File

@ -23,7 +23,9 @@ Changes
Bug Fixes
---------
* Selecting inexistent folders specified in folderincludes now throws
nice errors and continues to sync with all other folders rather than
exiting offlineimap with a traceback.
Pending for the next major release
==================================