Throw OfflineImapErrors rather than weird Exceptions

When misconfiguring OLI, e.g. by specifying a repository name that was
not configured anywhere, we would bomb out with cryptic "NoSectionError".
Throw OfflineImapError that explains what has happened. We still need to
avoid throwing exceptions with Tracebacks here though.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth
2012-08-31 20:05:01 +02:00
parent 925a5bcae1
commit 103524c979
2 changed files with 22 additions and 5 deletions

View File

@ -17,6 +17,7 @@ WIP (add new stuff for the next release)
necessary, it might have been breaking things. (J. Wiegley)
* Improve regex that could lead to 'NoneType' object has no attribute 'group'
(D. Franke)
* Improved error throwing on repository misconfiguration
OfflineIMAP v6.5.4 (2012-06-02)
===============================