2007-04-06 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_GrampsDbBase.py (GrampsDbBase.close_undodb): don't complain if the undo file isn't here. svn: r8360
This commit is contained in:
parent
abb87d57fd
commit
8408d07a1e
@ -1,3 +1,7 @@
|
||||
2007-04-06 Don Allingham <don@gramps-project.org>
|
||||
* src/GrampsDb/_GrampsDbBase.py (GrampsDbBase.close_undodb): don't complain
|
||||
if the undo file isn't here.
|
||||
|
||||
2007-04-05 Don Allingham <don@gramps-project.org>
|
||||
* src/plugins/Checkpoint.py: fix some more Popen issues
|
||||
|
||||
|
@ -371,7 +371,10 @@ class GrampsDbBase(GrampsDBCallback):
|
||||
|
||||
def close_undodb(self):
|
||||
if not self.readonly:
|
||||
self.undodb.close()
|
||||
try:
|
||||
self.undodb.close()
|
||||
except db.DBNoSuchFileError, msg:
|
||||
pass
|
||||
try:
|
||||
os.remove(self.undolog)
|
||||
except:
|
||||
|
Loading…
Reference in New Issue
Block a user