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:
Don Allingham 2007-04-07 04:12:15 +00:00
parent abb87d57fd
commit 8408d07a1e
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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: