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>
|
2007-04-05 Don Allingham <don@gramps-project.org>
|
||||||
* src/plugins/Checkpoint.py: fix some more Popen issues
|
* src/plugins/Checkpoint.py: fix some more Popen issues
|
||||||
|
|
||||||
|
@ -371,7 +371,10 @@ class GrampsDbBase(GrampsDBCallback):
|
|||||||
|
|
||||||
def close_undodb(self):
|
def close_undodb(self):
|
||||||
if not self.readonly:
|
if not self.readonly:
|
||||||
|
try:
|
||||||
self.undodb.close()
|
self.undodb.close()
|
||||||
|
except db.DBNoSuchFileError, msg:
|
||||||
|
pass
|
||||||
try:
|
try:
|
||||||
os.remove(self.undolog)
|
os.remove(self.undolog)
|
||||||
except:
|
except:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user