docker-offlineimap/offlineimap
Sebastian Spaeth 760698253b LocalStatus: Don't ignore Exceptions on os.fsync
Earlier we would ignore *ALL* Exceptions that could occur during the
fsyncing of our LocalStatus database. Ignoring all Exceptions is not the
right thing here though. A recent commit improved the situation by
raising at least KeyboardInterrupt Exceptions, but that is still not
optimal.

os.fsync() is available on Unix, and Windows starting in python
2.2.3. so it should always work. If it doesn't, something is wrong.

It has been suggested to only catch EnvironmentError (ie SystemError and
OSError) here, but even those should be thrown. Something *is* wrong if
this fails and we should not ignore it.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2011-01-14 19:25:11 +01:00
..
folder LocalStatus: Don't ignore Exceptions on os.fsync 2011-01-14 19:25:11 +01:00
repository Catch KeyboardInterrupt exceptions explicitely 2011-01-14 19:25:11 +01:00
ui Merge branch 'ss/ui-remove-detector' into next 2011-01-07 19:38:12 +01:00
__init__.py Define version constants etc in __init__.py 2010-12-22 19:45:01 +01:00
accounts.py Catch SystemExit and KeyboardInterrupt exceptions 2011-01-14 19:25:11 +01:00
CustomConfig.py Update FSF address 2006-08-12 05:15:55 +01:00
imaplibutil.py Replace UIBase.getglobalui() with getglobalui() 2011-01-05 19:24:00 +01:00
imapserver.py Replace UIBase.getglobalui() with getglobalui() 2011-01-05 19:24:00 +01:00
imaputil.py Replace UIBase.getglobalui() with getglobalui() 2011-01-05 19:24:00 +01:00
init.py Catch SystemExit and KeyboardInterrupt exceptions 2011-01-14 19:25:11 +01:00
localeval.py Update FSF address 2006-08-12 05:15:55 +01:00
mbnames.py Update FSF address 2006-08-12 05:15:55 +01:00
syncmaster.py remove unneeded includes from syncmaster.py 2010-12-09 19:52:48 +01:00
threadutil.py Replace UIBase.getglobalui() with getglobalui() 2011-01-05 19:24:00 +01:00