forked from openlp/openlp
improved deletion of corrupted files on windows (bug #824129)
Fixes: https://launchpad.net/bugs/824129
This commit is contained in:
parent
7159559eaa
commit
d7ae55f733
@ -151,6 +151,7 @@ class BibleManager(object):
|
|||||||
name = bible.get_name()
|
name = bible.get_name()
|
||||||
# Remove corrupted files.
|
# Remove corrupted files.
|
||||||
if name is None:
|
if name is None:
|
||||||
|
bible.session.close()
|
||||||
delete_file(os.path.join(self.path, filename))
|
delete_file(os.path.join(self.path, filename))
|
||||||
continue
|
continue
|
||||||
# Find old database versions.
|
# Find old database versions.
|
||||||
|
Loading…
Reference in New Issue
Block a user