improved deletion of corrupted files on windows (bug #824129)

Fixes: https://launchpad.net/bugs/824129
This commit is contained in:
Andreas Preikschat 2011-08-17 14:08:33 +02:00
parent 7159559eaa
commit d7ae55f733

View File

@ -151,6 +151,7 @@ class BibleManager(object):
name = bible.get_name()
# Remove corrupted files.
if name is None:
bible.session.close()
delete_file(os.path.join(self.path, filename))
continue
# Find old database versions.